@y14e/roving-tabindex 1.2.9 → 1.2.10

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 CHANGED
@@ -388,7 +388,7 @@ var RovingTabIndex = class {
388
388
  const foundIndex = target.findIndex(
389
389
  (focusable2) => current.indexOf(focusable2) > currentIndex
390
390
  );
391
- newIndex = foundIndex !== -1 ? foundIndex : 0;
391
+ newIndex = foundIndex >= 0 ? foundIndex : 0;
392
392
  }
393
393
  }
394
394
  const focusable = target.at(newIndex);
@@ -482,7 +482,7 @@ function getActiveElement() {
482
482
  * Lightweight roving tabindex utility with fully focus management.
483
483
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
484
484
  *
485
- * @version 1.2.9
485
+ * @version 1.2.10
486
486
  * @author Yusuke Kamiyamane
487
487
  * @license MIT
488
488
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Lightweight roving tabindex utility with fully focus management.
4
4
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
5
5
  *
6
- * @version 1.2.9
6
+ * @version 1.2.10
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
  * Lightweight roving tabindex utility with fully focus management.
4
4
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
5
5
  *
6
- * @version 1.2.9
6
+ * @version 1.2.10
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -386,7 +386,7 @@ var RovingTabIndex = class {
386
386
  const foundIndex = target.findIndex(
387
387
  (focusable2) => current.indexOf(focusable2) > currentIndex
388
388
  );
389
- newIndex = foundIndex !== -1 ? foundIndex : 0;
389
+ newIndex = foundIndex >= 0 ? foundIndex : 0;
390
390
  }
391
391
  }
392
392
  const focusable = target.at(newIndex);
@@ -480,7 +480,7 @@ function getActiveElement() {
480
480
  * Lightweight roving tabindex utility with fully focus management.
481
481
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
482
482
  *
483
- * @version 1.2.9
483
+ * @version 1.2.10
484
484
  * @author Yusuke Kamiyamane
485
485
  * @license MIT
486
486
  * @copyright Copyright (c) Yusuke Kamiyamane
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@y14e/roving-tabindex",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "description": "Lightweight roving tabindex utility with fully focus management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",