@dile/ui 2.10.3 → 2.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -175,15 +175,17 @@ export class DileModal extends DileCloseOnEscPressed(LitElement) {
175
175
  }
176
176
 
177
177
  close() {
178
- this.opened = false;
179
- this._toChange = true;
180
- this.dispatchEvent(
181
- new CustomEvent("dile-modal-closed", {
182
- bubbles: true,
183
- composed: true,
184
- detail: this,
185
- })
186
- );
178
+ if(this.opened) {
179
+ this.opened = false;
180
+ this._toChange = true;
181
+ this.dispatchEvent(
182
+ new CustomEvent("dile-modal-closed", {
183
+ bubbles: true,
184
+ composed: true,
185
+ detail: this,
186
+ })
187
+ );
188
+ }
187
189
  }
188
190
 
189
191
  animationEnd() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/ui",
3
- "version": "2.10.3",
3
+ "version": "2.10.4",
4
4
  "description": "UI Core components from dile-components.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,5 +26,5 @@
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "gitHead": "5eae576b914c37c6f4a1ec49c610266128c9075e"
29
+ "gitHead": "b3d745d5c2f638f3f38b6f573353ed48fca9f4fd"
30
30
  }