mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-02 07:58:40 +00:00
Fixed compact mode sidebar breaking when open a link from the other subpanels (https://github.com/zen-browser/desktop/issues/2218)
This commit is contained in:
@@ -48,7 +48,8 @@ var gZenUIManager = {
|
|||||||
onPopupShowing(showEvent) {
|
onPopupShowing(showEvent) {
|
||||||
for (const el of this._popupTrackingElements) {
|
for (const el of this._popupTrackingElements) {
|
||||||
// target may be inside a shadow root, not directly under the element
|
// target may be inside a shadow root, not directly under the element
|
||||||
if (!el.contains(showEvent.explicitOriginalTarget)) {
|
// we also ignore menus inside panels
|
||||||
|
if (!el.contains(showEvent.explicitOriginalTarget) || showEvent.explicitOriginalTarget.closest('panel')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
document.removeEventListener('mousemove', this.__removeHasPopupAttribute);
|
document.removeEventListener('mousemove', this.__removeHasPopupAttribute);
|
||||||
|
Reference in New Issue
Block a user