Skip to content

Commit

Permalink
fix(calendar): Trigger onMonthChanged only when month really changed #41
Browse files Browse the repository at this point in the history


* Clicking another day in the calendar calls _launchDateSelectionCallback
* This function checks if the parameters onDateSelected and onMonthChanged are not null
* If the parameters are not null, they get called
* This means, that onMonthChanged also gets called, when the month did not change

CHANGE

* This is now not possible anymore, because the check now includes a test, if month or year were changed.
  Only then onMonthChanged gets executed.

Fixes #41

#41
  • Loading branch information
agfeo-rw committed Dec 26, 2022
1 parent 6944976 commit b345ec5
Showing 1 changed file with 66 additions and 144 deletions.
Loading

0 comments on commit b345ec5

Please sign in to comment.