Skip to content

v1.0.11

Latest

Choose a tag to compare

@github-actions github-actions released this 16 May 12:39
· 3 commits to main since this release

Added

  • shift({ padding }) now accepts explicit viewport, scroll parent, or custom parent bounds padding.
  • Tests covering explicit shift padding, preserved offset-derived padding, and invalid padding sanitization.

Fixed

  • shift middleware sanitization now rejects non-finite and negative params.padding values with a deterministic warning.
  • Documentation examples using shift({ padding }) now match the public API.
  • Arrow docs now clarify that middlewareData.arrow.x/y use the same coordinate space as floating left/top.
  • Strategy docs now describe the auto-detected default: fixed for CSS position: fixed, otherwise absolute.