Skip to content

Commit 3622a34

Browse files
authored
fix: Dialog start with mouse pos (#306)
1 parent c503259 commit 3622a34

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Dialog/index.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,6 @@ export default function Dialog(props: IDialogPropTypes) {
143143
[],
144144
);
145145

146-
// useEffect(() => {
147-
// if (animatedVisible) {
148-
// scrollLocker?.lock();
149-
// return scrollLocker?.unLock;
150-
// }
151-
// return () => {};
152-
// }, [animatedVisible, scrollLocker]);
153-
154146
// ========================= Render =========================
155147
return (
156148
<div
@@ -184,7 +176,7 @@ export default function Dialog(props: IDialogPropTypes) {
184176
closable={closable}
185177
ariaId={ariaId}
186178
prefixCls={prefixCls}
187-
visible={visible}
179+
visible={visible && animatedVisible}
188180
onClose={onInternalClose}
189181
onVisibleChanged={onDialogVisibleChanged}
190182
motionName={getMotionName(prefixCls, transitionName, animation)}

0 commit comments

Comments
 (0)