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
I followed instructions in documentation written for my React-Calendar version
I have checked if this bug is not already reported
Description
Suppose, I am passing array of dates to the value prop, which have all dates which doesn't include dates that that come on sun or Saturday. For example, dates from 22 to 31st March 2024. But the dates on 23rd and 24th get automatically react-calendar__tile--active and make it look like selected. Although I am managing my own selected class by adding it using tileClassName.
Steps to reproduce
set value prop with dates i mentioned in description
Expected behavior
the dates which are not part of selected dates array shouldn't be having tile--ative class
Actual behavior
react-calendar__tile--active class gets automatically
Additional information
No response
Environment
Browser (if applicable):
React-Calendar version:
React version:
Version 124.0.6367.60 (Official Build) (arm64)
react-calendar: 4.8.0
The text was updated successfully, but these errors were encountered:
Why your code is adding this if (isRangeWithinRange(valueRange, dateRange)) { classes.push(${className}--active); } else if (doRangesOverlap(valueRange, dateRange)) { classes.push(${className}--hasActive); }
even if i am using my own Tileclassname and value and onchange? Why code is adding classnames when i don't want them to added?Can we override this?
Before you start - checklist
Description
Suppose, I am passing array of dates to the value prop, which have all dates which doesn't include dates that that come on sun or Saturday. For example, dates from 22 to 31st March 2024. But the dates on 23rd and 24th get automatically
react-calendar__tile--active
and make it look like selected. Although I am managing my own selected class by adding it using tileClassName.Steps to reproduce
set value prop with dates i mentioned in description
Expected behavior
the dates which are not part of selected dates array shouldn't be having tile--ative class
Actual behavior
react-calendar__tile--active class gets automatically
Additional information
No response
Environment
Version 124.0.6367.60 (Official Build) (arm64)
react-calendar: 4.8.0
The text was updated successfully, but these errors were encountered: