@vaadin/dialog 22.0.12 → 22.0.13
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.
- package/package.json +9 -9
- package/src/vaadin-dialog.js +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/dialog",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
36
36
|
"@polymer/iron-resizable-behavior": "^3.0.0",
|
|
37
37
|
"@polymer/polymer": "^3.0.0",
|
|
38
|
-
"@vaadin/component-base": "^22.0.
|
|
39
|
-
"@vaadin/vaadin-lumo-styles": "^22.0.
|
|
40
|
-
"@vaadin/vaadin-material-styles": "^22.0.
|
|
41
|
-
"@vaadin/vaadin-overlay": "^22.0.
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "^22.0.
|
|
38
|
+
"@vaadin/component-base": "^22.0.13",
|
|
39
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.13",
|
|
40
|
+
"@vaadin/vaadin-material-styles": "^22.0.13",
|
|
41
|
+
"@vaadin/vaadin-overlay": "^22.0.13",
|
|
42
|
+
"@vaadin/vaadin-themable-mixin": "^22.0.13"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@esm-bundle/chai": "^4.3.4",
|
|
46
|
-
"@vaadin/polymer-legacy-adapter": "^22.0.
|
|
46
|
+
"@vaadin/polymer-legacy-adapter": "^22.0.13",
|
|
47
47
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
48
|
-
"@vaadin/text-area": "^22.0.
|
|
48
|
+
"@vaadin/text-area": "^22.0.13",
|
|
49
49
|
"sinon": "^9.2.1"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "0ef3a237a2db4255710aa878debb169eb52a1715"
|
|
52
52
|
}
|
package/src/vaadin-dialog.js
CHANGED
|
@@ -291,9 +291,20 @@ class Dialog extends ThemePropertyMixin(ElementMixin(DialogDraggableMixin(Dialog
|
|
|
291
291
|
this.$.overlay.setProperties({ owner: this, renderer });
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
+
/** @protected */
|
|
295
|
+
connectedCallback() {
|
|
296
|
+
super.connectedCallback();
|
|
297
|
+
// Restore opened state if overlay was opened when disconnecting
|
|
298
|
+
if (this.__restoreOpened) {
|
|
299
|
+
this.opened = true;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
294
303
|
/** @protected */
|
|
295
304
|
disconnectedCallback() {
|
|
296
305
|
super.disconnectedCallback();
|
|
306
|
+
// Close overlay and memorize opened state
|
|
307
|
+
this.__restoreOpened = this.opened;
|
|
297
308
|
this.opened = false;
|
|
298
309
|
}
|
|
299
310
|
|