@floating-ui/dom
1.8.0 · 11 Jul 2026MIT149M / weekRepositoryHomepagenpmAtom feed
In short
1 new1 faster8 fixed1 internal
Release note
Minor Changes
Add
'layoutViewport'string option torootBoundary. Unlike the visual'viewport'boundary, it remains stable while pinch-zooming or when a mobile software keyboard is open, and unlike a manually passedRectof the documentElement's client size, it accounts for space reserved byscrollbar-gutter: stable.
Patch Changes
Remove redundant passive options from scroll listeners
Support explicit
undefinedfor optional properties withexactOptionalPropertyTypesautoUpdate: Update immediately instead of waiting for the 1s
layoutShiftrefresh throttle when the reference moved during an observer refreshgetClippingRect: Correct clipping-ancestor filtering for fixed-position elements
dom: Reduce bundle size and skip redundant per-call work in positioning utilities
getViewportRect: Account for
scrollbar-gutter: stable both-edgesreserved spacegetViewportRect: Don't overflow past a left-side document scrollbar
platform: Don't throw in
getClientRectswhen a virtual element without agetClientRectsmethod is used with theinline()middlewareautoUpdate: Refresh layout shift observer on root resize
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.