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
The class indicating active ("selected") state of a tile in month view (class react-calendar__tile--active) is not removed if the value supplied to react-calendar is cleared (e.g. setValue(undefined)).
The only workaround is to use tileClassName and set the custom selected class to style active ("selected") day accordingly.
Steps to reproduce
screen recording provided.
Expected behavior
react-calendar__tile--active is removed from all tiles, as no value is selected (value=undefined)
Actual behavior
react-calendar__tile--active stays on corresponding day tile
Before you start - checklist
Description
The class indicating active ("selected") state of a tile in month view (class
react-calendar__tile--active
) is not removed if the value supplied to react-calendar is cleared (e.g.setValue(undefined)
).The only workaround is to use tileClassName and set the custom selected class to style active ("selected") day accordingly.
Steps to reproduce
screen recording provided.
Expected behavior
react-calendar__tile--active
is removed from all tiles, as no value is selected (value=undefined
)Actual behavior
react-calendar__tile--active
stays on corresponding day tileAdditional information
screen recording:
https://github.com/user-attachments/assets/d83076fa-a51a-47ce-9304-af446d6581d8
Environment
The text was updated successfully, but these errors were encountered: