focus parent popup on hide instead of blurring
This commit is contained in:
parent
87ff5cb19b
commit
e4d302e786
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user