elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.58k stars 8.21k forks source link

[Security Solution][Alert Details] - pressing the escape key should only close flyout and not timeline #190761

Open PhilippeOberti opened 2 months ago

PhilippeOberti commented 2 months ago

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.

elasticmachine commented 2 months ago

Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations)