Skip to content

Conversation

@MohammadAzimi
Copy link
Contributor

Adds a method (available by ref) for programmatically navigating to any date. Passing new Date() enables go-to-today behavior while supporting additional use cases.

This implementation addresses all limitations raised in #386 and provides a more flexible alternative to a dedicated goToToday method.

  • Surely the visible month should be updated by calling goToDate
  • The isSelected boolean determines whether to just navigate or update the selected date
  • The feature is disabled when the scrollable prop is set to true, to prevent any breaks. (I would try to implement it in another PR)

Closes #380

currently not supporting scrollable
added goToDate method documents
@peacechen
Copy link
Collaborator

Thanks @MohammadAzimi for this oft requested and useful feature!

@peacechen peacechen merged commit 952ccb0 into stephy:master Dec 14, 2025
@MohammadAzimi MohammadAzimi deleted the feature/goToDate branch December 14, 2025 21:48
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.

Is there a 'Go to Today' function or any way to emulate it?

2 participants