mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-05 05:38:41 +03:00
Keep reference to stickers menu
This commit is contained in:
parent
3331c8af27
commit
5a4271268b
1 changed files with 3 additions and 2 deletions
|
@ -134,7 +134,7 @@ export default class Stickerpack extends React.Component {
|
|||
const x = buttonRect.right + window.pageXOffset - 37;
|
||||
const y = (buttonRect.top + (buttonRect.height / 2) + window.pageYOffset) - 19;
|
||||
// const self = this;
|
||||
ContextualMenu.createMenu(GenericElementContextMenu, {
|
||||
this.stickersMenu = ContextualMenu.createMenu(GenericElementContextMenu, {
|
||||
chevronOffset: 10,
|
||||
chevronFace: 'bottom',
|
||||
left: x,
|
||||
|
@ -150,11 +150,12 @@ export default class Stickerpack extends React.Component {
|
|||
}
|
||||
|
||||
onHideStickersClick(ev) {
|
||||
this.setState({showStickers: false});
|
||||
this.stickersMenu.close();
|
||||
}
|
||||
|
||||
onFinished() {
|
||||
this.setState({showStickers: false});
|
||||
this.stickersMenu = null;
|
||||
}
|
||||
|
||||
_launchManageIntegrations() {
|
||||
|
|
Loading…
Reference in a new issue