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 b4c0ed9edc
commit ae3f114501

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}));
});
}
}