Packages

@floating-ui/dom

1.8.0 · 11 Jul 2026MIT149.8M / weekRepositoryHomepagenpmAtom feed

Your version

1.4.0

17 Jun 2023Where it was published

1.8.0 is the newest release of 1.x.

In short

1 new2 fixed

Release note

New Features

  • autoUpdate: Add layoutShift option (true by default) to detect when the reference element moves on the screen. Thank you to @samthor for the technique using IntersectionObserver.

    If you were using animationFrame: true for 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 using transform of the reference element, or for nested portaled floating elements (if necessary).

Bug Fixes

  • Loop in tests with mocked Node

  • autoUpdate: animationFrame: true preventing 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.