@vaadin/overlay 24.3.13 → 24.3.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/overlay",
3
- "version": "24.3.13",
3
+ "version": "24.3.14",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,11 +36,11 @@
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/a11y-base": "~24.3.13",
40
- "@vaadin/component-base": "~24.3.13",
41
- "@vaadin/vaadin-lumo-styles": "~24.3.13",
42
- "@vaadin/vaadin-material-styles": "~24.3.13",
43
- "@vaadin/vaadin-themable-mixin": "~24.3.13"
39
+ "@vaadin/a11y-base": "~24.3.14",
40
+ "@vaadin/component-base": "~24.3.14",
41
+ "@vaadin/vaadin-lumo-styles": "~24.3.14",
42
+ "@vaadin/vaadin-material-styles": "~24.3.14",
43
+ "@vaadin/vaadin-themable-mixin": "~24.3.14"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@esm-bundle/chai": "^4.3.4",
@@ -48,5 +48,5 @@
48
48
  "lit": "^3.0.0",
49
49
  "sinon": "^13.0.2"
50
50
  },
51
- "gitHead": "a9551e4fcc8b6f2695a2d3099670a9d0729f2c62"
51
+ "gitHead": "4954f480ccfb7dca452e736dd67411a9ad992116"
52
52
  }
@@ -220,6 +220,11 @@ export const PositionMixin = (superClass) =>
220
220
 
221
221
  const targetRect = this.positionTarget.getBoundingClientRect();
222
222
 
223
+ if (targetRect.width === 0 && targetRect.height === 0 && this.opened) {
224
+ this.opened = false;
225
+ return;
226
+ }
227
+
223
228
  // Detect the desired alignment and update the layout accordingly
224
229
  const shouldAlignStartVertically = this.__shouldAlignStartVertically(targetRect);
225
230
  this.style.justifyContent = shouldAlignStartVertically ? 'flex-start' : 'flex-end';