1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-14 22:33:17 +00:00

fix wraning bug

This commit is contained in:
shanshuirenjia
2022-05-20 14:20:09 +08:00
parent 20efd05606
commit ce334a0d9c

View File

@@ -21,11 +21,15 @@ class ButtonItem extends React.Component {
constructor(props) {
super(props);
this.state = {
tooltipOpen: false,
isFreezed: false,
};
this.timer = null;
}
componentWillUnmount() {
this.timer && clearTimeout(this.timer);
}
toggle = () => {