Wrap menu close in timeout to avoid element disappearing unexpectedly.
This commit is contained in:
parent
8e7564b9a3
commit
ef4d13715a
1 changed files with 3 additions and 3 deletions
|
@ -66,7 +66,7 @@ export default class Stickerpicker extends React.Component {
|
||||||
}
|
}
|
||||||
Widgets.removeStickerpickerWidgets();
|
Widgets.removeStickerpickerWidgets();
|
||||||
this._getStickerPickerWidget();
|
this._getStickerPickerWidget();
|
||||||
this.stickersMenu.close();
|
setTimeout(() => this.stickersMenu.close());
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
@ -105,7 +105,7 @@ export default class Stickerpicker extends React.Component {
|
||||||
this._getStickerPickerWidget();
|
this._getStickerPickerWidget();
|
||||||
return;
|
return;
|
||||||
} else if (payload.action === "stickerpicker_close") {
|
} else if (payload.action === "stickerpicker_close") {
|
||||||
this.stickersMenu.close();
|
setTimeout(() => this.stickersMenu.close());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ export default class Stickerpicker extends React.Component {
|
||||||
* @param {Event} ev Event that triggered the function call
|
* @param {Event} ev Event that triggered the function call
|
||||||
*/
|
*/
|
||||||
onHideStickersClick(ev) {
|
onHideStickersClick(ev) {
|
||||||
this.stickersMenu.close();
|
setTimeout(() => this.stickersMenu.close());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue