Add event listener to close dialog.
This commit is contained in:
parent
d4038bbe37
commit
5a69cc65e6
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tp/tp-dialog",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"description": "",
|
||||
"main": "tp-dialog.js",
|
||||
"scripts": {
|
||||
|
@ -81,11 +81,13 @@ class TpDialog extends EventHelpers(LitElement) {
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
this.listen(this, 'click', '_onDialogClick');
|
||||
this.listen(this, 'dialog-close', 'close');
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
super.disconnectedCallback();
|
||||
this.unlisten(this, 'click', '_onDialogClick');
|
||||
this.unlisten(this, 'dialog-close', 'close');
|
||||
}
|
||||
|
||||
show() {
|
||||
|
Loading…
Reference in New Issue
Block a user