We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23bde39 commit 2f32860Copy full SHA for 2f32860
components/panels/content/xul-menupopup.js
@@ -40,29 +40,18 @@
40
* @param {Event} event
41
*/
42
onPopupShown(event) {
43
+ if (event.target != this) return;
44
+
45
this.setAttribute("open", "");
46
}
47
48
/**
49
* Fires when the popup starts being hidden
50
- onPopupHiding() {
- this.removeAttribute("open");
51
+ onPopupHiding(event) {
52
+ if (event.target !== this) return;
53
- // Remove the panel once all transitions have completed
- if (this.getAttribute("animate") == "true") {
54
- this.addEventListener(
55
- "transitionend",
56
- () => {
57
- this.hidePopup();
58
- },
59
- {
60
- once: true
61
- }
62
- );
63
- } else {
64
65
+ this.removeAttribute("open");
66
67
68
connectedCallback() {
0 commit comments