Open cypie92 opened 2 years ago
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.
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?
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. now I'm trying another package.
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.
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 ?