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", "name": "@tp/tp-dialog",
"version": "1.1.0", "version": "1.2.0",
"description": "", "description": "",
"main": "tp-dialog.js", "main": "tp-dialog.js",
"scripts": { "scripts": {

View File

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