Skip to content

Commit

Permalink
fix(drawer): 抽屉组件在 visible 默认为 true 时,无法正常显示
Browse files Browse the repository at this point in the history
  • Loading branch information
peng-yin committed Aug 2, 2023
1 parent fb0b37d commit 8e91d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drawer/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const Drawer = forwardRef<HTMLDivElement, DrawerProps>((originalProps, ref) => {

const closeIcon = React.isValidElement(closeBtn) ? closeBtn : <CloseIcon />;
const { dragSizeValue, enableDrag, draggableLineStyles } = useDrag(placement, sizeDraggable);
const [animationStart, setAnimationStart] = useState(false);
const [animationStart, setAnimationStart] = useState(true);

const sizeValue = useMemo(() => {
const sizeMap = { small: '300px', medium: '500px', large: '760px' };
Expand Down

0 comments on commit 8e91d74

Please sign in to comment.