-
Notifications
You must be signed in to change notification settings - Fork 58
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
Change month by using arrow will trigger onDateSelected on frist day of month #39
Comments
Technically it is not a bug. The navigation using these arrows leads to the selection of a new date, which then triggers the callback. But I get your point. There should be a way to differentiate wether the user clicked on a date, tapped an arrow or used the day picker to select a new date. |
and select on any date will trigger the onMonthChanged too from my testing which is not suppose to happen I assume. |
What could be a proper solution? Should the package provide the possibility to assign callback functions for each of the situations? |
I tried to use the onMonthChanged callback to remove the first day of month from list when user press arrow but the onMonthChanged get call even the user select a date on the current month so I'm unable to fix that. |
Sure, you are free to use whatever package you want. But this is open source code. I was just asking you for an idea, how it should work. |
|
Hi, i think the solution is that, allow provide assign different callbacks |
I think I'll add a parameter that controls the behavior of the callback. This parameter will let you select between two modes:
@cypie92 Do you think, that could work for you? |
I need to run some function in onDateSelected so i can save the date user pressed in a list, but when user press the arrow the onDateSelected will get called and insert first day of month into my list. Is this a bug ?
The text was updated successfully, but these errors were encountered: