mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 09:26:34 +00:00
Always fire the popup hidden event for customizable UI popups (https://github.com/zen-browser/desktop/issues/2743#)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
diff --git a/browser/components/customizableui/content/panelUI.js b/browser/components/customizableui/content/panelUI.js
|
||||
index 1805bad6c58e060533f634ed9e511c05cad3ded1..4eb04f3eb1b9dd1c5d663cca0a7ad903b38c4efd 100644
|
||||
--- a/browser/components/customizableui/content/panelUI.js
|
||||
+++ b/browser/components/customizableui/content/panelUI.js
|
||||
@@ -545,7 +545,7 @@ const PanelUI = {
|
||||
|
||||
if (viewShown) {
|
||||
CustomizableUI.addPanelCloseListeners(tempPanel);
|
||||
- tempPanel.addEventListener("popuphidden", panelRemover);
|
||||
+ tempPanel.addEventListener("popuphidden", panelRemover, { capture: true });
|
||||
} else {
|
||||
panelRemover();
|
||||
}
|
Reference in New Issue
Block a user