mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-05 05:38:41 +03:00
Handle stickerpack close.
This commit is contained in:
parent
9339284090
commit
7676fc0c10
1 changed files with 6 additions and 0 deletions
|
@ -28,6 +28,7 @@ export default class Stickerpack extends React.Component {
|
||||||
super(props);
|
super(props);
|
||||||
this.onShowStickersClick = this.onShowStickersClick.bind(this);
|
this.onShowStickersClick = this.onShowStickersClick.bind(this);
|
||||||
this.onHideStickersClick = this.onHideStickersClick.bind(this);
|
this.onHideStickersClick = this.onHideStickersClick.bind(this);
|
||||||
|
this.onFinished = this.onFinished.bind(this);
|
||||||
|
|
||||||
this.defaultStickersContent = (
|
this.defaultStickersContent = (
|
||||||
<div className='mx_StickersContentPlaceholder'>
|
<div className='mx_StickersContentPlaceholder'>
|
||||||
|
@ -100,6 +101,7 @@ export default class Stickerpack extends React.Component {
|
||||||
menuWidth: this.popoverWidth,
|
menuWidth: this.popoverWidth,
|
||||||
menuHeight: this.popoverHeight,
|
menuHeight: this.popoverHeight,
|
||||||
element: this.state.stickersContent,
|
element: this.state.stickersContent,
|
||||||
|
onFinished: this.onFinished,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -110,6 +112,10 @@ export default class Stickerpack extends React.Component {
|
||||||
this.setState({showStickers: false});
|
this.setState({showStickers: false});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onFinished() {
|
||||||
|
this.setState({showStickers: false});
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const TintableSvg = sdk.getComponent("elements.TintableSvg");
|
const TintableSvg = sdk.getComponent("elements.TintableSvg");
|
||||||
let stickersButton;
|
let stickersButton;
|
||||||
|
|
Loading…
Reference in a new issue