Skip to content

Commit

Permalink
Merge pull request #1124 from ga-devfront/fix/dialog-onclose
Browse files Browse the repository at this point in the history
[NEW UI] hotfix fore close dialog while waiting to find a cleaner solution
  • Loading branch information
Quetzacoalt91 authored Jan 16, 2025
2 parents c20880c + f746c87 commit d8c896e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _dev/src/ts/components/DialogContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class DialogContainer implements DomLifecycle {
}

#closeDialog(ev: Event): void {
scriptHandler.unloadScriptType(ScriptType.DIALOG);
setTimeout(() => scriptHandler.unloadScriptType(ScriptType.DIALOG), 0);
const dialog = ev.target as HTMLDialogElement;
if (dialog) {
dialog.close();
Expand Down

0 comments on commit d8c896e

Please sign in to comment.