Open PhilippeOberti opened 2 months ago
When pressing escape when an alert details flyout is open from the alerts table on the alerts page correctly closes the flyout.
escape
https://github.com/user-attachments/assets/03fd0df1-d9f8-4468-9d55-18d5fbfc367d
But pressing escape when an alert details flyout is open from a timeline closes the timeline modal and not the flyout.
https://github.com/user-attachments/assets/ca7edff8-ee10-4d76-91e4-9c9b09eff934
Pressing escape should always close the element that is open at the very top. In the case of the second scenario above, we should close the timeline flyout instead of the timeline modal.
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations)
Description
When pressing
escape
when an alert details flyout is open from the alerts table on the alerts page correctly closes the flyout.https://github.com/user-attachments/assets/03fd0df1-d9f8-4468-9d55-18d5fbfc367d
But pressing
escape
when an alert details flyout is open from a timeline closes the timeline modal and not the flyout.https://github.com/user-attachments/assets/ca7edff8-ee10-4d76-91e4-9c9b09eff934
Expected behavior
Pressing
escape
should always close the element that is open at the very top. In the case of the second scenario above, we should close the timeline flyout instead of the timeline modal.