Enable ESLint react/no-deprecated (#24471)

This commit is contained in:
Nick Schonning
2023-05-10 03:05:32 -04:00
committed by GitHub
parent 2d5e257938
commit b878e3d8df
27 changed files with 32 additions and 33 deletions

View File

@ -153,7 +153,7 @@ export default class AutosuggestTextarea extends ImmutablePureComponent {
this.textarea.focus();
};
componentWillReceiveProps (nextProps) {
UNSAFE_componentWillReceiveProps (nextProps) {
if (nextProps.suggestions !== this.props.suggestions && nextProps.suggestions.size > 0 && this.state.suggestionsHidden && this.state.focused) {
this.setState({ suggestionsHidden: false });
}