power-focusable 2.1.10 → 2.1.11
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/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -72,7 +72,7 @@ function isFocusable(element) {
|
|
|
72
72
|
console.warn("Invalid element");
|
|
73
73
|
return false;
|
|
74
74
|
}
|
|
75
|
-
if (element.
|
|
75
|
+
if (element.hidden || element.inert) {
|
|
76
76
|
return false;
|
|
77
77
|
}
|
|
78
78
|
if (element.tabIndex < 0) {
|
|
@@ -227,7 +227,7 @@ function sortByTabIndex(elements) {
|
|
|
227
227
|
* High-precision focus management utility with shadow DOM support.
|
|
228
228
|
* Handles complex focus rules including tabindex ordering, radio groups, etc.
|
|
229
229
|
*
|
|
230
|
-
* @version 2.1.
|
|
230
|
+
* @version 2.1.11
|
|
231
231
|
* @author Yusuke Kamiyamane
|
|
232
232
|
* @license MIT
|
|
233
233
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* High-precision focus management utility with shadow DOM support.
|
|
4
4
|
* Handles complex focus rules including tabindex ordering, radio groups, etc.
|
|
5
5
|
*
|
|
6
|
-
* @version 2.1.
|
|
6
|
+
* @version 2.1.11
|
|
7
7
|
* @author Yusuke Kamiyamane
|
|
8
8
|
* @license MIT
|
|
9
9
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* High-precision focus management utility with shadow DOM support.
|
|
4
4
|
* Handles complex focus rules including tabindex ordering, radio groups, etc.
|
|
5
5
|
*
|
|
6
|
-
* @version 2.1.
|
|
6
|
+
* @version 2.1.11
|
|
7
7
|
* @author Yusuke Kamiyamane
|
|
8
8
|
* @license MIT
|
|
9
9
|
* @copyright Copyright (c) Yusuke Kamiyamane
|
package/dist/index.js
CHANGED
|
@@ -70,7 +70,7 @@ function isFocusable(element) {
|
|
|
70
70
|
console.warn("Invalid element");
|
|
71
71
|
return false;
|
|
72
72
|
}
|
|
73
|
-
if (element.
|
|
73
|
+
if (element.hidden || element.inert) {
|
|
74
74
|
return false;
|
|
75
75
|
}
|
|
76
76
|
if (element.tabIndex < 0) {
|
|
@@ -225,7 +225,7 @@ function sortByTabIndex(elements) {
|
|
|
225
225
|
* High-precision focus management utility with shadow DOM support.
|
|
226
226
|
* Handles complex focus rules including tabindex ordering, radio groups, etc.
|
|
227
227
|
*
|
|
228
|
-
* @version 2.1.
|
|
228
|
+
* @version 2.1.11
|
|
229
229
|
* @author Yusuke Kamiyamane
|
|
230
230
|
* @license MIT
|
|
231
231
|
* @copyright Copyright (c) Yusuke Kamiyamane
|