Commit 52772aec authored by jim's avatar jim

fix #1188 @Debounce no use arrow function

parent 774f8d43
......@@ -48,12 +48,13 @@ export default class GlobalHeader extends PureComponent {
onCollapse(!collapsed);
this.triggerResizeEvent();
};
/* eslint-disable*/
@Debounce(600)
triggerResizeEvent = () => {
triggerResizeEvent() {
const event = document.createEvent('HTMLEvents');
event.initEvent('resize', true, false);
window.dispatchEvent(event);
};
}
render() {
const {
currentUser,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment