Skip to content

Commit 01f0c9d

Browse files
Maja Grubicelasticmachine
andcommitted
[Filter Bar] Remove flickering when opening filter bar popover (#56222)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent 57506ed commit 01f0c9d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/plugins/data/public/ui/filter_bar/filter_bar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ function FilterBarUI(props: Props) {
9696
withTitle
9797
panelPaddingSize="none"
9898
ownFocus={true}
99+
initialFocus=".filterEditor__hiddenItem"
99100
>
100101
<EuiFlexItem grow={false}>
101102
<div style={{ width: 400 }}>

src/plugins/data/public/ui/filter_bar/filter_editor/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class FilterEditorUI extends Component<Props, State> {
9595
defaultMessage="Edit filter"
9696
/>
9797
</EuiFlexItem>
98+
<EuiFlexItem grow={false} className="filterEditor__hiddenItem" />
9899
<EuiFlexItem grow={false}>
99100
<EuiButtonEmpty size="xs" onClick={this.toggleCustomEditor}>
100101
{this.state.isCustomEditorOpen ? (

0 commit comments

Comments
 (0)