@vaadin/component-base 24.0.3 → 24.0.5

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/component-base",
3
- "version": "24.0.3",
3
+ "version": "24.0.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -42,5 +42,5 @@
42
42
  "@vaadin/testing-helpers": "^0.4.0",
43
43
  "sinon": "^13.0.2"
44
44
  },
45
- "gitHead": "d658b846e23aeb9c76866efcbbc86fad57193580"
45
+ "gitHead": "e384c1b5c02e01a4382a433f727d075de9a4ee97"
46
46
  }
@@ -45,7 +45,7 @@ const registered = new Set();
45
45
  export const ElementMixin = (superClass) =>
46
46
  class VaadinElementMixin extends DirMixin(superClass) {
47
47
  static get version() {
48
- return '24.0.3';
48
+ return '24.0.5';
49
49
  }
50
50
 
51
51
  /** @protected */
@@ -134,7 +134,9 @@ export function isElementHidden(element) {
134
134
  // `offsetParent` is `null` when the element itself
135
135
  // or one of its ancestors is hidden with `display: none`.
136
136
  // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent
137
- if (element.offsetParent === null) {
137
+ // However `offsetParent` is also null when the element is using fixed
138
+ // positioning, so additionally check if the element takes up layout space.
139
+ if (element.offsetParent === null && element.clientWidth === 0 && element.clientHeight === 0) {
138
140
  return true;
139
141
  }
140
142