- fix: calculate reference element offset relative to
offsetParent
iframe. Fixes issue with positioning in nested iframes, such as the following:
<html>
<iframe>
<div>floating</div>
<iframe>
<div>reference</div>
</iframe>
</iframe>
</html>
- fix: top layer element positioning and collision detection when using
absolute
strategy
- perf: avoid
getContainingBlock
call for non-top layer elements
- fix: handle CSS
:top-layer
elements inside containing blocks. It's no longer necessary to implement the middleware workaround outlined in #1842 (comment).
- Update dependencies:
@floating-ui/core@1.6.0
- 4c04669: chore: exports .d.mts types, solves #2472
- 0d18e37: refactor: avoid $ appearing in rects dimensions
- Updated dependencies [4c04669]
- Updated dependencies [afb7e5e]
- @floating-ui/utils@0.2.0
- @floating-ui/core@1.5.3
- a6c72f50: fix(getOverflowAncestors): avoid traversing into iframes for clipping detection
- Updated dependencies [a6c72f50]
- Updated dependencies [0ef68ffa]
- @floating-ui/utils@0.1.3
- @floating-ui/core@1.4.2
- 3426bc27: fix: traverse into iframe parents when finding overflow ancestors