From 72ec0cbe155ea360c210f8ce4e7bfddc5fc3561d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Sat, 29 Oct 2022 23:21:48 +0800 Subject: [PATCH] fix: Dialog start with mouse pos --- src/Dialog/index.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Dialog/index.tsx b/src/Dialog/index.tsx index b9d14578..de5d0080 100644 --- a/src/Dialog/index.tsx +++ b/src/Dialog/index.tsx @@ -143,14 +143,6 @@ export default function Dialog(props: IDialogPropTypes) { [], ); - // useEffect(() => { - // if (animatedVisible) { - // scrollLocker?.lock(); - // return scrollLocker?.unLock; - // } - // return () => {}; - // }, [animatedVisible, scrollLocker]); - // ========================= Render ========================= return (