Skip to content

Commit

Permalink
[Filter Bar] Remove flickering when opening filter bar popover (#56222)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
Maja Grubic and elasticmachine authored Jan 30, 2020
1 parent fb334ef commit 371abf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/data/public/ui/filter_bar/filter_bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function FilterBarUI(props: Props) {
withTitle
panelPaddingSize="none"
ownFocus={true}
initialFocus=".filterEditor__hiddenItem"
>
<EuiFlexItem grow={false}>
<div style={{ width: 400 }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class FilterEditorUI extends Component<Props, State> {
defaultMessage="Edit filter"
/>
</EuiFlexItem>
<EuiFlexItem grow={false} className="filterEditor__hiddenItem" />
<EuiFlexItem grow={false}>
<EuiButtonEmpty size="xs" onClick={this.toggleCustomEditor}>
{this.state.isCustomEditorOpen ? (
Expand Down

0 comments on commit 371abf6

Please sign in to comment.