@vaadin/component-base 23.3.11 → 23.3.12

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": "23.3.11",
3
+ "version": "23.3.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -42,5 +42,5 @@
42
42
  "@vaadin/testing-helpers": "^0.3.2",
43
43
  "sinon": "^13.0.2"
44
44
  },
45
- "gitHead": "1998b389444ed0bf24fc25cfa86a641d59e8a761"
45
+ "gitHead": "bbac14aa7983200727e4baebd3be483c87579bd8"
46
46
  }
@@ -39,7 +39,7 @@ const registered = new Set();
39
39
  export const ElementMixin = (superClass) =>
40
40
  class VaadinElementMixin extends DirMixin(superClass) {
41
41
  static get version() {
42
- return '23.3.11';
42
+ return '23.3.12';
43
43
  }
44
44
 
45
45
  /** @protected */
@@ -188,7 +188,9 @@ export function isElementHidden(element) {
188
188
  // `offsetParent` is `null` when the element itself
189
189
  // or one of its ancestors is hidden with `display: none`.
190
190
  // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent
191
- if (element.offsetParent === null) {
191
+ // However `offsetParent` is also null when the element is using fixed
192
+ // positioning, so additionally check if the element takes up layout space.
193
+ if (element.offsetParent === null && element.clientWidth === 0 && element.clientHeight === 0) {
192
194
  return true;
193
195
  }
194
196