Fix compose box closing when removing poll options
This commit is contained in:
parent
21789858c0
commit
e47c6396f2
1 changed files with 2 additions and 2 deletions
|
@ -158,11 +158,11 @@ class ComposeForm extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
document.addEventListener('click', this.handleClick, false);
|
document.addEventListener('click', this.handleClick, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
document.removeEventListener('click', this.handleClick, false);
|
document.removeEventListener('click', this.handleClick, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
|
|
Loading…
Reference in a new issue