Skip to content

v0.2.88

Choose a tag to compare

@github-actions github-actions released this 22 Feb 16:29
· 392 commits to main since this release
77b9ac1

v0.2.88 — Release notes

A patch release that fixes unintended hover-card auto-opening when a dialog is opened under the pointer.

Packages updated

  • @data-slot/hover-card

Notes:

  • The monorepo version was bumped to v0.2.88, but only @data-slot/hover-card contains code changes in this release.

@data-slot/hover-card

  • 🐛 Fix: Prevent hover-card from automatically opening when it is nested inside a dialog that is opened while the pointer is already over the page. The hover open logic now tracks recent pointer movement and requires a short hover-intent window before opening, avoiding accidental opens when dialogs appear under the cursor.
  • Implementation details (for maintainers):
    • Added a POINTER_HOVER_INTENT_WINDOW_MS (250ms) threshold.
    • Track last pointer movement time (lastPointerMoveAt) and only allow pointer-initiated opens if movement occurred within the intent window.
    • Reset pointer tracking on pointerdown to avoid stale state.
  • User impact: More predictable hover behavior when dialogs or overlays are shown; reduces unwanted hover-card popups in nested dialog scenarios.
  • Migration: No API changes; no action required from consumers.

💥 Breaking changes: None.