@floating-ui/dom@1.2.0
New Features
-
feat(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. (#2160)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). -
feat(detectOverflow): accept virtual
Rect
boundaries (#2161)
Bug Fixes
- fix(types): exported
platform
object now has all methods non-optional withRequired<Platform>
(#2166)