@y14e/roving-tabindex 1.2.9 → 1.2.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 CHANGED
@@ -381,14 +381,11 @@ var RovingTabIndex = class {
381
381
  newIndex = wrap ? rawIndex % current.length : Math.min(rawIndex, current.length - 1);
382
382
  break;
383
383
  default: {
384
- if (!typeahead) {
385
- break;
386
- }
387
384
  target = this.#focusablesByFirstChar.get(key.toUpperCase()) ?? [];
388
385
  const foundIndex = target.findIndex(
389
386
  (focusable2) => current.indexOf(focusable2) > currentIndex
390
387
  );
391
- newIndex = foundIndex !== -1 ? foundIndex : 0;
388
+ newIndex = foundIndex >= 0 ? foundIndex : 0;
392
389
  }
393
390
  }
394
391
  const focusable = target.at(newIndex);
@@ -482,7 +479,7 @@ function getActiveElement() {
482
479
  * Lightweight roving tabindex utility with fully focus management.
483
480
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
484
481
  *
485
- * @version 1.2.9
482
+ * @version 1.2.11
486
483
  * @author Yusuke Kamiyamane
487
484
  * @license MIT
488
485
  * @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.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
  * 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.11
7
7
  * @author Yusuke Kamiyamane
8
8
  * @license MIT
9
9
  * @copyright Copyright (c) Yusuke Kamiyamane
package/dist/index.js CHANGED
@@ -379,14 +379,11 @@ var RovingTabIndex = class {
379
379
  newIndex = wrap ? rawIndex % current.length : Math.min(rawIndex, current.length - 1);
380
380
  break;
381
381
  default: {
382
- if (!typeahead) {
383
- break;
384
- }
385
382
  target = this.#focusablesByFirstChar.get(key.toUpperCase()) ?? [];
386
383
  const foundIndex = target.findIndex(
387
384
  (focusable2) => current.indexOf(focusable2) > currentIndex
388
385
  );
389
- newIndex = foundIndex !== -1 ? foundIndex : 0;
386
+ newIndex = foundIndex >= 0 ? foundIndex : 0;
390
387
  }
391
388
  }
392
389
  const focusable = target.at(newIndex);
@@ -480,7 +477,7 @@ function getActiveElement() {
480
477
  * Lightweight roving tabindex utility with fully focus management.
481
478
  * Designed for accessible menus, tabs, toolbars, and composite widgets.
482
479
  *
483
- * @version 1.2.9
480
+ * @version 1.2.11
484
481
  * @author Yusuke Kamiyamane
485
482
  * @license MIT
486
483
  * @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.11",
4
4
  "description": "Lightweight roving tabindex utility with fully focus management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",