diff --git a/src/components/views/rooms/Stickerpack.js b/src/components/views/rooms/Stickerpack.js index 52cd32ba4f..18ace9300c 100644 --- a/src/components/views/rooms/Stickerpack.js +++ b/src/components/views/rooms/Stickerpack.js @@ -28,6 +28,7 @@ export default class Stickerpack extends React.Component { super(props); this.onShowStickersClick = this.onShowStickersClick.bind(this); this.onHideStickersClick = this.onHideStickersClick.bind(this); + this.onFinished = this.onFinished.bind(this); this.defaultStickersContent = (
@@ -100,6 +101,7 @@ export default class Stickerpack extends React.Component { menuWidth: this.popoverWidth, menuHeight: this.popoverHeight, element: this.state.stickersContent, + onFinished: this.onFinished, }); @@ -110,6 +112,10 @@ export default class Stickerpack extends React.Component { this.setState({showStickers: false}); } + onFinished() { + this.setState({showStickers: false}); + } + render() { const TintableSvg = sdk.getComponent("elements.TintableSvg"); let stickersButton;