Make time picker in query bar usable in Firefox (#35279) (#35282)

This commit is contained in:
Joe Reuter 2019-04-18 17:51:58 +02:00 committed by GitHub
parent 0ee8786452
commit 89449c315e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -332,7 +332,9 @@ export class QueryBarUI extends Component<Props, State> {
};
public onOutsideClick = () => {
this.setState({ isSuggestionsVisible: false, index: null });
if (this.state.isSuggestionsVisible) {
this.setState({ isSuggestionsVisible: false, index: null });
}
};
public onClickInput = (event: React.MouseEvent<HTMLInputElement>) => {