Skip to content

Commit 47f3e40

Browse files
author
刘欢
committed
feat: useEffect dependencies
1 parent cb629f3 commit 47f3e40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dialog/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const Dialog: React.FC<IDialogPropTypes> = (props) => {
167167
) {
168168
doClose();
169169
}
170-
}, [visible]);
170+
}, [visible, animatedVisible, doClose]);
171171

172172
// Remove direct should also check the scroll bar update
173173
useEffect(

0 commit comments

Comments
 (0)