diff --git a/src/Autosuggest.js b/src/Autosuggest.js index bdaffd58..ee46d658 100644 --- a/src/Autosuggest.js +++ b/src/Autosuggest.js @@ -121,7 +121,8 @@ export default class Autosuggest extends Component { this.suggestionsContainer = this.autowhatever.itemsContainer; } - componentWillReceiveProps(nextProps) { + // eslint-disable-next-line camelcase, react/sort-comp + UNSAFE_componentWillReceiveProps(nextProps) { if (shallowEqualArrays(nextProps.suggestions, this.props.suggestions)) { if ( nextProps.highlightFirstSuggestion &&