Skip to content

Commit

Permalink
Fixed #1267 - IE11: Autocomplete with dropdown requires doubleclick
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 16, 2020
1 parent 206af10 commit ba5ea89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/autocomplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,16 +507,16 @@ export class AutoComplete extends Component {
}

componentDidUpdate(prevProps) {
if (this.searching) {
if (prevProps.suggestions !== this.props.suggestions && this.searching) {
if (this.props.suggestions && this.props.suggestions.length)
this.showPanel();
else
this.hidePanel();

this.hideLoader();
}

this.searching = false;
this.searching = false;
}

if (this.inputEl && !this.props.multiple) {
this.updateInputField(this.props.value);
Expand Down

0 comments on commit ba5ea89

Please sign in to comment.