Skip to content

Commit

Permalink
Make time picker in query bar usable in Firefox (#35279) (#35282)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored Apr 18, 2019
1 parent 0ee8786 commit 89449c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/legacy/ui/public/query_bar/components/query_bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>) => {
Expand Down

0 comments on commit 89449c3

Please sign in to comment.