Packages

@floating-ui/dom

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

Your version

1.2.0

5 Feb 2023Where it was published

1.8.0 is the newest release of 1.x.

In short

2 new1 fixed

Release note

New Features

  • platform: Add ability to polyfill offsetParent access (in a pure way) to fix a platform gap where the incorrect value is returned inside shadow DOM.

    This was previously done internally a while ago (1.0.1) but reportedly causes a performance issue in certain scenarios, meaning it cannot be a default. This allows the polyfill to be conditionally enabled by libraries. The polyfill and its usage is available here, which ideally would be made into its own package (that can be iterated on and potentially improved perf-wise).

  • detectOverflow: Accept virtual Rect boundaries

Bug Fixes

  • types: Exported platform object now has all methods non-optional with Required<Platform>

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.