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
[EuiFlyout] Pressing ESC on a tooltip element inside the EuiFlyout should not close the flyout. #8130
This issue relates to Elastic Kibana issue #199448. When a tooltip element inside an EuiFlyout is focused, pressing the ESC key is expected to close only the tooltip. Currently, however, pressing ESC closes the entire EuiFlyout.
This behavior has been observed with IconTip and EuiCard (for badges) and may affect other tooltip elements as well.
To Reproduce
In Storybook, create or update an EuiFlyout with the following body:
<EuiFlyoutBody>
Flyout body <EuiIconTipcontent={'test'}/></EuiFlyoutBody>
Use the keyboard to focus on EuiIconTip and press ESC.
Expected Behavior : Only the tooltip should close.
Hey, @alexwizp 👋🏻 Thank you for raising the issue!
I have a solution specific to the EuiToolTip (and in consequence EuiIconTip) and I'm investigating "other tooltip elements" as you have mentioned. If you could let me know though, what do you mean by EuiCard? From what I'm seeing, that component doesn't handle the Escape key.
Activity
weronikaolejniczak commentedon Nov 14, 2024
Hey, @alexwizp 👋🏻 Thank you for raising the issue!
I have a solution specific to the
EuiToolTip(and in consequenceEuiIconTip) and I'm investigating "other tooltip elements" as you have mentioned. If you could let me know though, what do you mean byEuiCard? From what I'm seeing, that component doesn't handle the Escape key.alexwizp commentedon Nov 15, 2024
Hi @weronikaolejniczak I mean
Betabadge inEuiCardfix(flyout): close flyout only on non-propagated escape
fix(tool_tip): stop propagation on escape key down
fix(tool_tip): stop propagation on escape key down
fix(tool_tip): stop propagation on escape key down
fix(tool_tip): stop propagation on escape key down
fix(tool_tip): stop propagation on escape key down