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) {
143
143
[ ] ,
144
144
) ;
145
145
146
- // useEffect(() => {
147
- // if (animatedVisible) {
148
- // scrollLocker?.lock();
149
- // return scrollLocker?.unLock;
150
- // }
151
- // return () => {};
152
- // }, [animatedVisible, scrollLocker]);
153
-
154
146
// ========================= Render =========================
155
147
return (
156
148
< div
@@ -184,7 +176,7 @@ export default function Dialog(props: IDialogPropTypes) {
184
176
closable = { closable }
185
177
ariaId = { ariaId }
186
178
prefixCls = { prefixCls }
187
- visible = { visible }
179
+ visible = { visible && animatedVisible }
188
180
onClose = { onInternalClose }
189
181
onVisibleChanged = { onDialogVisibleChanged }
190
182
motionName = { getMotionName ( prefixCls , transitionName , animation ) }
You can’t perform that action at this time.
0 commit comments