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