npm / @floating-ui/dom
@floating-ui/dom
What changed in @floating-ui/dom 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
2 new APIs and options2 performance8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@floating-ui/dom 112 changes
New APIs and options 2
Adds the layoutViewport string option, which stays stable during pinch-zooming and when a mobile software keyboard is open, and accounts for space reserved by scrollbar-gutter: stable.
Allows calling autoUpdate without passing a floating element.
Performance 2
Reduces bundle size and skips redundant per-call work.
Includes bundle and runtime improvements.
Fixes and other changes 8
Updates immediately when the reference moves during an observer refresh instead of waiting for the 1s layoutShift refresh throttle.
Refreshes the layout shift observer when the root resizes.
Supports explicit undefined for optional properties when exactOptionalPropertyTypes is enabled.
Corrects clipping-ancestor filtering for fixed-position elements.
Accounts for space reserved by scrollbar-gutter: stable both-edges.
Prevents the viewport rectangle from overflowing past a left-side document scrollbar.
Avoids throwing when inline() is used with a virtual element that lacks a getClientRects method.
The Platform type now contains the detectOverflow type.