fix: Fixed raycast focus activating the sidebar on compact mode, b=closes #7590, c=common

This commit is contained in:
mr. m
2025-06-09 09:44:17 +02:00
parent ba4eef0db9
commit 2d5fed3cd9

View File

@@ -157,7 +157,9 @@ var gZenUIManager = {
if (
!el.contains(showEvent.explicitOriginalTarget) ||
(showEvent.explicitOriginalTarget instanceof Element &&
showEvent.explicitOriginalTarget?.closest('panel'))
showEvent.explicitOriginalTarget?.closest('panel')) ||
// See bug #7590: Ignore menupopup elements opening
showEvent.explicitOriginalTarget.tagName === 'menupopup'
) {
continue;
}