Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add value to onActiveStartDateChange and onViewChange callbacks arguments #379

Merged
merged 1 commit into from
May 28, 2020

Conversation

wojtekmaj
Copy link
Owner

This will make it much easier to programatically determine why a given callback was called.

For example, if value in onActiveStartDateChange remains the same, we know that it's not the calendar tile being clicked. We can use this information to eg. stop calendar view from being updated if a tile is clicked (as user requested in, for example, #378).

@wojtekmaj
Copy link
Owner Author

@mikeyharris89 Please let me know what you think.

@mikeyharris89
Copy link

Looks good!

@wojtekmaj wojtekmaj merged commit e226402 into master May 28, 2020
@wojtekmaj wojtekmaj deleted the value-in-callbacks branch May 28, 2020 06:26
felixmosh pushed a commit to felixmosh/react-calendar that referenced this pull request Nov 8, 2020
@iamacoderguy

This comment has been minimized.

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.

3 participants