@floating-ui/dom
1.8.0 · 11 Jul 2026MIT149.8M / weekRepositoryHomepagenpmAtom feed
1.8.0 is the newest release of 1.x.
In short
1 new2 fixed
Release note
New Features
autoUpdate: Add
layoutShiftoption (trueby default) to detect when the reference element moves on the screen. Thank you to @samthor for the technique usingIntersectionObserver.If you were using
animationFrame: truefor this purpose, you can now disable the option and use the defaults for layout shift checks. That option should now only be used if you need the floating element to stay anchored either during an animation usingtransformof the reference element, or for nested portaled floating elements (if necessary).
Bug Fixes
Loop in tests with mocked
NodeautoUpdate:
animationFrame: truepreventing updates if reference element is fixed
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.