sforkowany z mirror/soapbox
Revert "Composer: remove click listener on unmount"
This reverts commit 136965acdd
.
composer-jump-take-seven^2^2
rodzic
ffab2ec2ef
commit
18d08a3630
|
@ -182,10 +182,6 @@ export default class AutosuggestTextarea extends ImmutablePureComponent {
|
|||
document.addEventListener('click', this.handleClick, true);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
document.removeEventListener('click', this.handleClick, true);
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
const { suggestions } = this.props;
|
||||
if (suggestions !== prevProps.suggestions && suggestions.size > 0 && prevState.suggestionsHidden && prevState.focused) {
|
||||
|
|
Ładowanie…
Reference in New Issue