- fix(useHover): ensure
mouseOnly
is respected whenrestMs
is specified. Also ensurerestMs
is always0
for touch input. - fix(types): export
FloatingOverlayProps
- feat(useDelayGroup): return the
GroupContext
value from the Hook, and don't require anid
option to be passed. You only need to invokeuseDelayGroup()
and read the context data from it. As a result,useDelayGroupContext()
has been deprecated as it no longer needs to be used.
- fix(FloatingFocusManager): return focus to the first tabbable descendant of the reference element if the reference element itself is not focusable
- fix(useFocus): avoid closing floating element when focus moves inside shadow roots
- Update dependencies:
@floating-ui/react-dom@2.0.8
- chore: improve JSDocs
- fix(FloatingPortal): unconditional rendering with Suspense
- Update dependencies:
@floating-ui/react-dom@2.0.7
- c9c5058: fix(useListNavigation): sync internal
indexRef
toselectedIndex
on open. Fixes an issue where ifselectedIndex
changed after initial render before opening,activeIndex
would not be correctly synced. - 8b3c93b: fix(utils): check if env is JSDOM for
isVirtualPointerEvent
. Fixes issue when testingvisibleOnly
prop inuseFocus
. - Updated dependencies [d3a773b]
- @floating-ui/react-dom@2.0.6
- 672e458: feat(useListNavigation, Composite): support grid navigation over items with variable sizes
- 4c04669: chore: exports .d.mts types, solves #2472
- 6af9808: fix(react/utils): cross-browser
isVirtualPointerEvent
- Updated dependencies [4c04669]
- Updated dependencies [afb7e5e]
- @floating-ui/react-dom@2.0.5
- @floating-ui/utils@0.2.0
- 7dc269cf: feat(useRole): add
select
andcombobox
component roles and allow dynamic/derivable item props based onactive
andselected
states. Also addsmenuitem
role for nestedmenu
reference elements, and automatically adds anid
to the item props for the new component roles for virtual focus. - d9be2481: fix(useListNavigation): apply
aria-activedescendant
prop on floating element only for non typeable-combobox reference elements. Fixes issues with Firefox VoiceOver on Mac forcing DOM focus into the listbox.
-
9170b9e6: fix(useDismiss):
targetRootAncestor
check for third party outside pressesThe Grammarly extension no longer closes upon clicking when inside floating elements.
-
66efdaf8: fix(FloatingFocusManager): return focus to last connected element
- c1965f65: refactor: minor jsdoc/type improvements
- 3bd42f24: feat: reason strings as third param of onOpenChange
- 14cb1681: fix(FloatingFocusManager): avoid returning focus to reference if focus moved elsewhere
- 628fd119: feat(useRole): add label role
- Updated dependencies [c1965f65]
- @floating-ui/react-dom@2.0.3
- ac17abb7: feat(Composite): allow controlled mode with
activeIndex
andonNavigate
props - c3bfd04e: fix(useFocus): improve
visibleOnly
detection - 43725a2c: feat(useDismiss): add
capture
option and defaultoutsidePress
totrue
- 0668ed61: feat(useFocus): replace
keyboardOnly
option withvisibleOnly
(matches :focus-visible CSS selector)
- 07d8e853: fix(useDismiss): handle dragging outside/inside floating element
with click
outsidePressEvent
- 841eb03a: fix(useFocus): close on blur only if focus remains in document
- e6d80efb: fix(FloatingFocusManager): treat untrapped combobox reference as non-modal guards
- 4144204a: fix: virtual event check for Android
- 28659c4d: refactor: move react utils to @floating-ui/react/utils
- Updated dependencies [28659c4d]
- @floating-ui/utils@0.1.5
- 8bf6e826: fix(Composite): loop false
- 8d576645: feat(useListNavigation): support nested virtual navigation