Avoid to remove the active overlay when a cancelled dialog (like the file picker) was called from a dialog
This commit is contained in:
parent
42c2b7b657
commit
eca1e6c52e
@ -37,8 +37,10 @@ class OverlayManager {
|
||||
}
|
||||
this.#overlays.set(dialog, { canForceClose });
|
||||
|
||||
dialog.addEventListener("cancel", evt => {
|
||||
dialog.addEventListener("cancel", ({ target }) => {
|
||||
if (this.#active === target) {
|
||||
this.#active = null;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user