Make VfsSelect dispatch close event when dialog closes so others can listen for it

This commit is contained in:
nathan 2024-07-09 11:44:44 -06:00
parent 4212cbc5b6
commit a4a4bbbf58

View File

@ -108,6 +108,7 @@ export class Et2VfsSelectButton extends Et2InputWidget(LitElement)
waitForEvent(this._dialog, "sl-after-show").then(async() =>
{
this.processDialogComplete(await this._dialog.getComplete());
this.dispatchEvent(new Event("close", {bubbles: true}));
});
}
}