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

This commit is contained in:
Joe Reuter 2019-04-18 17:52:03 +02:00 committed by GitHub
parent 3872a4e2e8
commit 375f9c61e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,7 +318,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>) => {