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() {
|
||||
document.addEventListener('click', this.handleClick, false);
|
||||
document.addEventListener('click', this.handleClick, true);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
document.removeEventListener('click', this.handleClick, false);
|
||||
document.removeEventListener('click', this.handleClick, true);
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
|
|
Loading…
Reference in a new issue