Fix compose box closing when removing poll options

This commit is contained in:
Alex Gleason 2020-04-15 15:32:05 -05:00
parent 21789858c0
commit e47c6396f2
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

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