Skip to content

Conversation

@IvanKalinin
Copy link
Contributor

📝 Description

Added onPageChange callback to datepicker api. Useful to determine the current month after clicking next/previous trigger and, for example, load events or different data based on the current calendar page/month.

⛳️ Current behavior (updates)

N/A

🚀 New behavior

Triggers onPageChange callback on clicking next/previous trigger

💣 Is this a breaking change (Yes/No):

No

📝 Additional Information

N/A

@changeset-bot
Copy link

changeset-bot bot commented Nov 30, 2025

⚠️ No Changeset found

Latest commit: c0ffa20

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Nov 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
zag-nextjs Ready Ready Preview Nov 30, 2025 5:47am
zag-solid Ready Ready Preview Nov 30, 2025 5:47am
zag-svelte Ready Ready Preview Nov 30, 2025 5:47am
zag-vue Ready Ready Preview Nov 30, 2025 5:47am
zag-website Ready Ready Preview Nov 30, 2025 5:47am

@segunadebayo
Copy link
Member

Thanks for contributing this. I was wondering if there was an alternative name to “onPageChange”, given the word “page” doesn’t feel intuitive for a date picker.

Wondering if “onNavigate” or a combo of “onPrevTriggerClick” + “onNextTriggerClick” would work.

@IvanKalinin
Copy link
Contributor Author

Thanks for contributing this. I was wondering if there was an alternative name to “onPageChange”, given the word “page” doesn’t feel intuitive for a date picker.

Wondering if “onNavigate” or a combo of “onPrevTriggerClick” + “onNextTriggerClick” would work.

Do you want me to rename it to onNavigate?

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.

2 participants