focus parent popup on hide instead of blurring

This commit is contained in:
siikamiika 2019-08-31 16:11:35 +03:00 committed by toasted-nutbread
parent 87ff5cb19b
commit e4d302e786

View File

@ -207,7 +207,7 @@ class Popup {
hide() {
this.hideContainer();
this.container.blur();
this.focusParent();
this.hideChildren();
}
@ -248,6 +248,14 @@ class Popup {
}
}
focusParent() {
if (this.parent && this.parent.container) {
this.parent.container.focus();
} else {
this.container.blur();
}
}
async containsPoint(point) {
if (!this.isVisible()) {
return false;