From 6dba70995fa2f7926220d8bea2c7643a48bbb85a Mon Sep 17 00:00:00 2001 From: shaodahong Date: Fri, 25 Dec 2020 10:21:49 +0800 Subject: [PATCH] fix useEffect return --- src/Dialog/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dialog/index.tsx b/src/Dialog/index.tsx index 1e5d9959..0ed87751 100644 --- a/src/Dialog/index.tsx +++ b/src/Dialog/index.tsx @@ -140,7 +140,7 @@ export default function Dialog(props: IDialogChildProps) { return scrollLocker?.unLock; } - return null; + return () => {}; }, [visible]); // Remove direct should also check the scroll bar update