Add closed event
This commit is contained in:
parent
9c2cede178
commit
b725bceb4f
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tp/tp-dialog",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"description": "",
|
||||
"main": "tp-dialog.js",
|
||||
"scripts": {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user