Skip to content

Commit db0d5eb

Browse files
author
路振凯
committed
test: revert closeTimerRef
1 parent e169a3c commit db0d5eb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Dialog/index.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,6 @@ const Dialog: React.FC<IDialogPropTypes> = (props) => {
169169

170170
if (hasMotion && !inMotion) {
171171
doClose();
172-
} else {
173-
closeTimerRef.current = setTimeout(() => {
174-
if (!visible && animatedVisible) {
175-
doClose();
176-
}
177-
}, 500);
178172
}
179173
}
180174

0 commit comments

Comments
 (0)