Keep reference to stickers menu

pull/21833/head
Richard Lewis 2018-01-17 15:40:47 +00:00
parent 3331c8af27
commit 5a4271268b
1 changed files with 3 additions and 2 deletions

View File

@ -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() {