mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-15 06:44:16 +00:00
fix wraning bug
This commit is contained in:
@@ -21,11 +21,15 @@ class ButtonItem extends React.Component {
|
|||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
tooltipOpen: false,
|
tooltipOpen: false,
|
||||||
isFreezed: false,
|
isFreezed: false,
|
||||||
};
|
};
|
||||||
|
this.timer = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
componentWillUnmount() {
|
||||||
|
this.timer && clearTimeout(this.timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
toggle = () => {
|
toggle = () => {
|
||||||
|
Reference in New Issue
Block a user