This release adds support for full interaction with embedded text fields and other interactive elements in GridList and Tree with the keyboardNavigationBehavior prop. Autocomplete and Popover gain several improvements to support inline completions, including a new getTargetRect prop on Popover for positioning overlays relative to arbitrary character positions. Menu's onAction callback now provides both the item key and value, and DragTypes.has() accepts multiple MIME types and wildcards.
Breaking Changes
@react-aria/optimize-locales-plugin has been bumped by a major version due to upgrading from unplugin@1 to unplugin@2. This was necessary to support Node 26, which removed a deprecated API used by unplugin@1. If you are using webpack 4, you will need to either stay on the previous version of the plugin or upgrade to webpack 5.
Changelog
General Changes
- Fix crash in
isFocusableandisElementVisiblewhen called on a node detached from a browsing context - @reidbarber - PR - Improve tree shaking in the
optimizeLocalesbuild plugin - @bhovhannes - PR - Fix crash in test environments where
HTMLElement.prototype.focusis defined as a getter-only accessor property - @antododo - PR - Update
optimize-locales-plugincompatibility with Node.js 26 - @bhovhannes - PR - Support
not-*variants intailwindcss-react-aria-components- @mehdibha - PR
Autocomplete
- Fix virtual focus not being applied to the first matching item when typing with a CJK IME - @Lucas20000903 - PR
- Add inline completions example to Autocomplete documentation - @devongovett - PR, PR
Calendar
Drag and Drop
- Allow
DragTypes.has()to accept multiple MIME types and wildcard patterns such asimage/*- @devongovett - PR
GridList
- Add
keyboardNavigationBehaviorprop to support textfields and other interactive elements inside of rows - @LFDanLu - PR, PR
Menu
- Update
onActionto receive both the item'skeyand itsvalueas arguments - @devongovett - PR
Popover
- Add
getTargetRectprop to Popover for positioning relative to an arbitrary rectangle or character position within a text field - @devongovett - PR
Tree
- Add
keyboardNavigationBehaviorprop support textfields and other interactive elements inside of rows - @LFDanLu - PR, PR
Released packages
- @react-types/shared@3.36.0
- @react-aria/optimize-locales-plugin@2.0.0
- @react-aria/parcel-resolver-optimize-locales@1.4.0
- react-aria@3.50.0
- react-aria-components@1.19.0
- react-stately@3.48.0
- tailwindcss-react-aria-components@2.2.0