Skip to content

Commit fdc6e59

Browse files
authored
Fix Alert navigation bug (#962)
1 parent 6c55ba8 commit fdc6e59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/alert/Alert.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const Alert = props => {
3737
timeout.current = null;
3838
}
3939
}
40+
return () => clearTimeout(timeout.current);
4041
}, [is_open]);
4142

4243
const dismiss = () => {

0 commit comments

Comments
 (0)