You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiPopover and EuiComboBox] Has issues ownFocus #1454
When ComboBox is the first focusable element in a popover with the ownFocus prop enabled you'll see the ComboBox and Popover flash briefly in the wrong spot before the popover opens completely. Also, sometimes the ComboBox won't open at all. You can see both of these issues in the gif below:
There doesn't seem to be one at the moment except for perhaps turning off ownFocus or by making the combobox not the first focusable element in popover.
It's likely this was fixed by the move to react-focus-on from react-focus-lock or one of the version updates we made to react-focus-on.
Additionally, ownFocus no longer focuses the first focusable element by default (#5784), so this outcome is significantly less likely to happen even if my repro is misleading.
Closing, but anyone can reopen if the problem has not been resolved.
Activity
jpambrun commentedon Apr 13, 2020
I have the same issue. Is there any workaround?
cchaos commentedon Apr 13, 2020
There doesn't seem to be one at the moment except for perhaps turning off
ownFocusor by making the combobox not the first focusable element in popover.thompsongl commentedon Apr 13, 2020
The case specifically shown in the gif was recently fixed in Kibana: elastic/kibana#56222
The solution was to use the
initialFocusprop on EuiPopover to target one of the header elements for focus.To prevent this error at the EUI level, I think we'd be looking at altering animation logic or introducing render delays for popover content.
[-]Issues with Popover's ownFocus and ComboBox[/-][+][EuiPopover and EuiComboBox] Has issues `ownFocus`[/+]thompsongl commentedon Apr 29, 2022
I can no longer reproduce this bug.
Screen.Recording.2022-04-29.at.1.12.31.PM.mov
It's likely this was fixed by the move to
react-focus-onfromreact-focus-lockor one of the version updates we made toreact-focus-on.Additionally,
ownFocusno longer focuses the first focusable element by default (#5784), so this outcome is significantly less likely to happen even if my repro is misleading.Closing, but anyone can reopen if the problem has not been resolved.