github ariakit/ariakit @ariakit/utils@0.1.4

  • Added getItemRoleByPopupRole to @ariakit/utils for resolving item roles from popup role strings.
  • Fixed getClosestFocusable freezing the page in an infinite loop when walking up from an element that matched the focusable selector but was not actually focusable, such as a box-less display: contents element (reachable through TagList's click handler).
  • Fixed text field detection for elements rendered inside same-origin iframes. This fixes Composite keyboard navigation for iframe text fields, including components built on it such as Toolbar, and prevents Command and Combobox from treating iframe text fields as non-text fields.
  • Added isInputEvent.
  • Fixed queueBeforeEvent so the cancel function removes the pending event listener as well as the queued timer.
  • Fixed getScrollingElement to resolve the scroll container from the element's own document instead of the top-level page, so scroll-aware behavior works correctly for elements rendered inside a same-origin iframe.
  • Fixed the fallbackToFocusable option of getFirstTabbableIn, getAllTabbableIn, and getLastTabbableIn to return focusable elements instead of every raw selector match, so the fallback no longer yields non-focusable elements such as a display: none input.

Don't miss a new ariakit release

NewReleases is sending notifications on new releases.