You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click the year (e.g. November 2020) to go into the year view.
(bug) Click on January, and notice that onActiveStartDateChange event doesn't get fired.
Go back into year view, and try with any other month. In these cases, the event does get fired as expected.
This also applies when drilling down into the first year of a decade.
This is the correct behavior in the sense that the activeStartDate isn't actually changing when you drill down on the first month. Although it was quite surprising in our usage. I'd have preferred/expected the logic to be that the event gets fired iff the tuple (view, activeStartDate) is changed.
We can workaround this pretty easily by mapping onDrillDown to the same handler, at the (minimal) expense that we get duplicate calls when clicking on not-January months.
The text was updated successfully, but these errors were encountered:
I don't think this will be worked on (the logic for these callbacks is based on setting state and firing additional callback when state is changed, so this would require a hefty refactoring) but I do agree with you that this coming as a surprise should not have been the case. This should be better documented and I'm gonna update the docs to make note of that.
Steps to reproduce with https://codesandbox.io/s/intelligent-ganguly-6xlfy?file=/src/App.js:
onActiveStartDateChange
event doesn't get fired.This also applies when drilling down into the first year of a decade.
This is the correct behavior in the sense that the activeStartDate isn't actually changing when you drill down on the first month. Although it was quite surprising in our usage. I'd have preferred/expected the logic to be that the event gets fired iff the tuple (view, activeStartDate) is changed.
We can workaround this pretty easily by mapping
onDrillDown
to the same handler, at the (minimal) expense that we get duplicate calls when clicking on not-January months.The text was updated successfully, but these errors were encountered: