[8.x] [ES|QL] fix editor menus on safari (#218167) (#218342)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ES|QL] fix editor menus on safari
(#218167)](https://github.com/elastic/kibana/pull/218167)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Drew
Tate","email":"drew.tate@elastic.co"},"sourceCommit":{"committedDate":"2025-04-15T19:26:27Z","message":"[ES|QL]
fix editor menus on safari (#218167)\n\n## Summary\n\nFix
https://github.com/elastic/kibana/issues/215405\n\nTooltips still
work:\n\n<img width=\"524\" alt=\"Screenshot 2025-04-14 at 1 03
17 PM\"\nsrc=\"https://github.com/user-attachments/assets/5a28d2e4-af75-455f-9df1-691493460cc7\"\n/>\n\n---------\n\nCo-authored-by:
Stratoula Kalafateli
<efstratia.kalafateli@elastic.co>","sha":"7ee7edb5e5165f4537659f271e604528807415b3","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:ES|QL","Team:ESQL","backport:version","v9.1.0","v8.19.0"],"title":"[ES|QL]
fix editor menus on
safari","number":218167,"url":"https://github.com/elastic/kibana/pull/218167","mergeCommit":{"message":"[ES|QL]
fix editor menus on safari (#218167)\n\n## Summary\n\nFix
https://github.com/elastic/kibana/issues/215405\n\nTooltips still
work:\n\n<img width=\"524\" alt=\"Screenshot 2025-04-14 at 1 03
17 PM\"\nsrc=\"https://github.com/user-attachments/assets/5a28d2e4-af75-455f-9df1-691493460cc7\"\n/>\n\n---------\n\nCo-authored-by:
Stratoula Kalafateli
<efstratia.kalafateli@elastic.co>","sha":"7ee7edb5e5165f4537659f271e604528807415b3"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/218167","number":218167,"mergeCommit":{"message":"[ES|QL]
fix editor menus on safari (#218167)\n\n## Summary\n\nFix
https://github.com/elastic/kibana/issues/215405\n\nTooltips still
work:\n\n<img width=\"524\" alt=\"Screenshot 2025-04-14 at 1 03
17 PM\"\nsrc=\"https://github.com/user-attachments/assets/5a28d2e4-af75-455f-9df1-691493460cc7\"\n/>\n\n---------\n\nCo-authored-by:
Stratoula Kalafateli
<efstratia.kalafateli@elastic.co>","sha":"7ee7edb5e5165f4537659f271e604528807415b3"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Drew Tate <drew.tate@elastic.co>
This commit is contained in:
Kibana Machine 2025-04-15 23:14:14 +02:00 committed by GitHub
parent fc686c5527
commit e5bb57656c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -784,7 +784,15 @@ export const ESQLEditor = memo(function ESQLEditor({
</EuiFlexItem>
</EuiFlexGroup>
)}
<EuiFlexGroup gutterSize="none" responsive={false} ref={containerRef}>
<EuiFlexGroup
gutterSize="none"
css={{
zIndex: theme.euiTheme.levels.flyout,
position: 'relative',
}}
responsive={false}
ref={containerRef}
>
<EuiOutsideClickDetector
onOutsideClick={() => {
setIsCodeEditorExpandedFocused(false);