Skip to content

Conversation

Jiiieeef
Copy link

@Jiiieeef Jiiieeef commented Sep 22, 2025

Closes #8850

Adds a new property to useRangeCalendar allowing you to specify the behavior when the pointer is released outside of the component:

  • select: (default) same as the current behavior, commit the hovered range dates.
  • clear: clear the current range selection.
  • reset: restore the previously selected range (i.e., the one selected before starting a new selection).

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

@Jiiieeef Jiiieeef force-pushed the calendar-add-pointer-up-customisation branch from 4abd333 to 1467af2 Compare September 23, 2025 12:58
@Jiiieeef
Copy link
Author

Hey :)

Sorry for the ping @devongovett just wondering if you’d have a chance to take a look at this PR 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RangeCalendar selects hovered date on popover close
1 participant