Add closed event

This commit is contained in:
trading_peter 2024-11-22 11:27:07 +01:00
parent 9c2cede178
commit b725bceb4f
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@tp/tp-dialog",
"version": "1.1.0",
"version": "1.2.0",
"description": "",
"main": "tp-dialog.js",
"scripts": {

View File

@ -125,6 +125,7 @@ class TpDialog extends EventHelpers(LitElement) {
close() {
this.dialog.close();
this.dispatchEvent(new CustomEvent('closed', { detail: null, bubbles: true, composed: true }));
this.open = false;
}