From b725bceb4fdf8a4ea707bed55341b57518f18b66 Mon Sep 17 00:00:00 2001 From: pk Date: Fri, 22 Nov 2024 11:27:07 +0100 Subject: [PATCH] Add closed event --- package.json | 2 +- tp-dialog.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; }