@floating-ui/dom
1.8.0 · 11 Jul 2026MIT149.8M / weekRepositoryHomepagenpmAtom feed
Upgrading @floating-ui/dom From 1.2.3 to 1.8.0
40 releases in betweenevery note read
Release by release
- New
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. - New
dom: Reduce bundle size and skip redundant per-call work in positioning utilities
- Fixed
Remove redundant passive options from scroll listeners
- Fixed
Support explicit
undefinedfor optional properties withexactOptionalPropertyTypes
- New
- New
Bundle and runtime improvements
- New
autoUpdate: Allow not passing a floating element
- Fixed
types: Ensure
Platformtype containsdetectOverflowtype
- New
1.7.5nothing new or fixed in the note
- Fixed
getViewportRect: Account for space left by
scrollbar-gutter: stable
- Fixed
1.7.3nothing new or fixed in the note
- New
Reduce memory allocations
- New
1.7.1nothing new or fixed in the note
- New
flip: Add
"alignment"string value forcrossAxisoption. This value determines if cross axis overflow checking is restricted to thealignmentof the placement only. This preventsfallbackPlacements/fallbackAxisSideDirectionfrom too eagerly changing to the perpendicular side (thereby preferringshift()if overflow is detected along the cross axis, even ifshift()is placed afterflip()in the middleware array). - Fixed
Correct position when document scrollbar is on left side with fixed strategy
- New
24 internal lines (docs, tests, tooling) left out.
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.