@vaadin/dialog 23.0.4 → 23.0.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/dialog",
3
- "version": "23.0.4",
3
+ "version": "23.0.7",
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.4",
39
- "@vaadin/vaadin-lumo-styles": "^23.0.4",
40
- "@vaadin/vaadin-material-styles": "^23.0.4",
41
- "@vaadin/vaadin-overlay": "^23.0.4",
42
- "@vaadin/vaadin-themable-mixin": "^23.0.4"
38
+ "@vaadin/component-base": "^23.0.7",
39
+ "@vaadin/vaadin-lumo-styles": "^23.0.7",
40
+ "@vaadin/vaadin-material-styles": "^23.0.7",
41
+ "@vaadin/vaadin-overlay": "^23.0.7",
42
+ "@vaadin/vaadin-themable-mixin": "^23.0.7"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@esm-bundle/chai": "^4.3.4",
46
- "@vaadin/polymer-legacy-adapter": "^23.0.4",
46
+ "@vaadin/polymer-legacy-adapter": "^23.0.7",
47
47
  "@vaadin/testing-helpers": "^0.3.2",
48
- "@vaadin/text-area": "^23.0.4",
48
+ "@vaadin/text-area": "^23.0.7",
49
49
  "sinon": "^9.2.1"
50
50
  },
51
- "gitHead": "d8db2046661c42fb5aac09ed683b500bf4613b26"
51
+ "gitHead": "005c2d85db8f50cd3b239dd89ac467add6a71049"
52
52
  }
@@ -24,6 +24,7 @@ registerStyles(
24
24
  .resizer-container {
25
25
  overflow: auto;
26
26
  flex-grow: 1;
27
+ border-radius: inherit; /* prevent child elements being drawn outside part=overlay */
27
28
  }
28
29
 
29
30
  [part='overlay'][style] .resizer-container {
@@ -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