@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 +2 -2
- package/src/element-mixin.js +1 -1
- package/src/focus-utils.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/component-base",
|
|
3
|
-
"version": "23.3.
|
|
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": "
|
|
45
|
+
"gitHead": "bbac14aa7983200727e4baebd3be483c87579bd8"
|
|
46
46
|
}
|
package/src/element-mixin.js
CHANGED
package/src/focus-utils.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|