File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff 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 ) }
You can’t perform that action at this time.
0 commit comments