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
All the logic shown here does work (selection, disabled dates, hovered, custom class names and components, etc), expect for the newly issue I am facing.
And now for the issue:
After introducing the class name logic in CustomRangeDay I am having issues with the day selection.
Sometime it works as it should (selecting/ de-selecting start and end dates).
And sometime it would allow me to select only a start date or both and then the click won't de-select or change the dates.
I am assuming I did something wrong, but I am not sure where is the issue, if I remove all class name logic in the custom day button component the issue remains.
I did found out that if i remove this part, then the issue is gone:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone!
I am using react-day-picker as such:
Those are the the props I am passing to the component:
This is the custom day button:
All the logic shown here does work (selection, disabled dates, hovered, custom class names and components, etc), expect for the newly issue I am facing.
And now for the issue:
After introducing the class name logic in
CustomRangeDay
I am having issues with the day selection.Sometime it works as it should (selecting/ de-selecting start and end dates).
And sometime it would allow me to select only a start date or both and then the click won't de-select or change the dates.
I am assuming I did something wrong, but I am not sure where is the issue, if I remove all class name logic in the custom day button component the issue remains.
I did found out that if i remove this part, then the issue is gone:
Any help would be much appreciated! thank you all!
Beta Was this translation helpful? Give feedback.
All reactions