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