Add closed event
This commit is contained in:
1 parent
9c2cede178
commit
b725bceb4f
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -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": {
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user