Enable ESLint react/no-deprecated (#24471)
This commit is contained in:
@ -154,7 +154,7 @@ export default class AutosuggestInput extends ImmutablePureComponent {
|
||||
this.input.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 });
|
||||
}
|
||||
|
Reference in New Issue
Block a user