-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EuiPopover] Bug with ownFocus when closing the popover #4003
Comments
I'm going to make this a high priority. I've been noticing this for a long time in or docs and has frustrated me just never got around to making an issue for it. |
Results from digging: This appears to be an issue from our wrapping of the popover contents with EuiOutsideClickDetector. Disabling does not solve the issue outright, however. When EuiOutsideClickDetector is enabled, clicking one a second anchor button shifts the focus back to the first, then Without EuiOutsideClickDetector, when Looking into the right way to resolve. |
I've got a branch that shifts our on-click-outside & on-escape-key handling into the |
When you have several elements that can trigger a EuiPopover, open a popover one after each other with a mouseclick, always the first element that triggered the EuiPopover gains focus when one of the follow up popover closes. This can lead to flickering when e.g. the first element displays additional elements onFocus, here's the example of elastic/kibana#75749
This only happens in chrome and as @Dosant noted:
If there was a way to improve this behavior, the workaround of elastic/kibana#75749, assigning focus to the clicked element, should be reverted .
The text was updated successfully, but these errors were encountered: