Releases: floating-ui/floating-ui
Releases · floating-ui/floating-ui
@floating-ui/[email protected]
Patch Changes
- fix(FloatingFocusManager): return focus on outside press if possible for non-context nested floating elements
- perf: improve performance by only clearing used timeouts
- fix(useMergeRefs): support React 19 ref cleanup
- fix(FloatingFocusManager): avoid returning to unrelated references
@floating-ui/[email protected]
Patch Changes
- fix(useListNavigation): use parent's orientation when opening/closing nested menus, correctly supporting grid submenus
- fix(FloatingList): avoid race condition between registering/unregistering nodes and setting indices
@floating-ui/[email protected]
Patch Changes
- Update dependencies:
@floating-ui/[email protected]
@floating-ui/[email protected]
Patch Changes
- fix(getContainingBlock): detect
translate
,rotate
,scale
shorthand properties
@floating-ui/[email protected]
Patch Changes
- feat(FloatingFocusManager): accept
FloatingRootContext
as thecontext
prop - fix(useListNavigation): check for virtual pointer on pointerenter
- refactor: use jsx runtime
- Update dependencies:
@floating-ui/[email protected]
@floating-ui/[email protected]
Patch Changes
- fix(autoUpdate): work around
IntersectionObserver
issue that sometimes fails to detect movement of reference element - Update dependencies:
@floating-ui/[email protected]
@floating-ui/[email protected]
Patch Changes
- Update dependencies:
@floating-ui/[email protected]
@floating-ui/[email protected]
Patch Changes
- fix(FloatingFocusManager): prevent stale
inert
/aria-hidden
attributes from being left on outside elements
@floating-ui/[email protected]
Patch Changes
- fix(FloatingFocusManager): correctly fallback to container
- fix(FloatingFocusManager): check for ancestor floating focus element during
closeOnFocusOut
- fix(FloatingFocusManager): avoid marking tree ancestor floating nodes with
data-floating-ui-inert
whenmodal=false
@floating-ui/[email protected]
Minor Changes
- chore: deprecate
inner
anduseInnerOffset
. This technique of aligning an inner element to the reference has poor performance with longer lists, doesn't fit with the middleware paradigm, doesn't work on touch, and has a better custom alternative using nativeonScroll
that is encouraged instead. - breaking: drop React 16 support. 17 is the minimum supported version.
- fix(useId): add
| undefined
return type for React 17
Patch Changes
- feat(FloatingFocusManager): add
outsideElementsInert
prop. This enables pointer modality without a backdrop. - perf(useListNavigation): simplify focusing to remove unneeded asynchronicity
- fix(useDismiss): allow native clicks to work with
referencePress
- fix(useDismiss): read target
overflow
style for scrollbar press check. Fixes an issue where outside presses would be incorrectly prevented if the target element that was pressed appeared scrollable but was actually not. - fix(FloatingFocusManager): check for 'safe-polygon' reason on return focus