summaryrefslogtreecommitdiff
path: root/ext/fg/js/popup.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fg/js/popup.js')
-rw-r--r--ext/fg/js/popup.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js
index c91764c4..61a5e4d0 100644
--- a/ext/fg/js/popup.js
+++ b/ext/fg/js/popup.js
@@ -206,9 +206,9 @@ class Popup {
}
hide() {
+ this.hideChildren();
this.hideContainer();
this.focusParent();
- this.hideChildren();
}
hideChildren() {
@@ -221,7 +221,7 @@ class Popup {
const target = targets.shift();
if (target.isContainerHidden()) { continue; }
- target.hideContainer();
+ target.hide();
for (const child of target.children) {
targets.push(child);
}
@@ -249,10 +249,9 @@ class Popup {
}
focusParent() {
+ this.container.blur();
if (this.parent && this.parent.container) {
this.parent.container.focus();
- } else {
- this.container.blur();
}
}