Packages

@floating-ui/dom

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

Your version

1.1.0

26 Dec 2022Where it was published

1.8.0 is the newest release of 1.x.

In short

3 fixed1 internal

Release note

Refactors

  • Support cross-document anchoring, where if floating element is in a higher-level window than the reference element, the positioning takes this into account (i.e. reference element is inside an iframe, but the floating element isn't)

    Bumping minor version because if you were adding external code/custom middleware to add support yourself, it will break with this update as it's no longer necessary.

Bug Fixes

  • getDimensions: Use computed width/height if possible

    If using box-sizing: border-box (recommended default by most CSS resets, and this lib), then the floating rect will now always contain fractional values. When using size to set the width of the floating element, it will no longer be truncated unexpectedly (e.g. adding ... ellipsis overflow).

  • isOverflowElement: Check for overflow: clip value

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.