@vaadin/dialog 22.0.11 → 22.0.14

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": "22.0.11",
3
+ "version": "22.0.14",
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.11",
39
- "@vaadin/vaadin-lumo-styles": "^22.0.11",
40
- "@vaadin/vaadin-material-styles": "^22.0.11",
41
- "@vaadin/vaadin-overlay": "^22.0.11",
42
- "@vaadin/vaadin-themable-mixin": "^22.0.11"
38
+ "@vaadin/component-base": "^22.0.14",
39
+ "@vaadin/vaadin-lumo-styles": "^22.0.14",
40
+ "@vaadin/vaadin-material-styles": "^22.0.14",
41
+ "@vaadin/vaadin-overlay": "^22.0.14",
42
+ "@vaadin/vaadin-themable-mixin": "^22.0.14"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@esm-bundle/chai": "^4.3.4",
46
- "@vaadin/polymer-legacy-adapter": "^22.0.11",
46
+ "@vaadin/polymer-legacy-adapter": "^22.0.14",
47
47
  "@vaadin/testing-helpers": "^0.3.2",
48
- "@vaadin/text-area": "^22.0.11",
48
+ "@vaadin/text-area": "^22.0.14",
49
49
  "sinon": "^9.2.1"
50
50
  },
51
- "gitHead": "a905b1ef7af885ce5536646e818fe76574407237"
51
+ "gitHead": "62419e3f8f41fe9dc4f0bce5e1717b16828459b6"
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 {
@@ -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