Packages

@floating-ui/dom

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

Your version

1.0.10

12 Dec 2022Where it was published

1.8.0 is the newest release of 1.x.

In short

1 faster2 fixed

Release note

Bug Fixes

  • Use computed width/height when calculating scale transforms. Fractional width/height could cause slight discrepancies with the scale factors, and therefore incorrect positioning

  • Handle nested scale where the reference and offsetParent both had their own scale

Performance Improvements

  • Add caching for expensive DOM calls. The cache only lives for a single computePosition call, so there won't be any stale DOM checks.

    The userAgent check is now cached forever after the first call however

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.