Skip to content

Commit

Permalink
Auto-focus on the Field input when clicking Add filter (#355)
Browse files Browse the repository at this point in the history
Added Auto-focus on Add Filter Input

Done by setting the initial focus of the popover with the relevant selector

* correct autofocus

Signed-off-by: galangel <gal0angel@gmail.com>

* use class

Signed-off-by: galangel <gal0angel@gmail.com>
  • Loading branch information
galangel authored and kavilla committed May 25, 2021
1 parent 5b0cb69 commit 03e7020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/data/public/ui/filter_bar/filter_bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function FilterBarUI(props: Props) {
withTitle
panelPaddingSize="none"
ownFocus={true}
initialFocus=".filterEditor__hiddenItem"
initialFocus=".globalFilterEditor__fieldInput input"
repositionOnScroll
>
<EuiFlexItem grow={false}>
Expand Down

0 comments on commit 03e7020

Please sign in to comment.