focus parent popup on hide instead of blurring
This commit is contained in:
parent
87ff5cb19b
commit
e4d302e786
@ -207,7 +207,7 @@ class Popup {
|
|||||||
|
|
||||||
hide() {
|
hide() {
|
||||||
this.hideContainer();
|
this.hideContainer();
|
||||||
this.container.blur();
|
this.focusParent();
|
||||||
this.hideChildren();
|
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) {
|
async containsPoint(point) {
|
||||||
if (!this.isVisible()) {
|
if (!this.isVisible()) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user