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

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

View file

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