diff --git a/package.json b/package.json index a42b6d4..a614d53 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tp/tp-dialog", - "version": "1.1.0", + "version": "1.2.0", "description": "", "main": "tp-dialog.js", "scripts": { diff --git a/tp-dialog.js b/tp-dialog.js index e9d0b76..6775dc0 100644 --- a/tp-dialog.js +++ b/tp-dialog.js @@ -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; }