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 noticed the following peculiarity regarding the --hover / --hoverEnd / --hoverStart classes:
When a date range is selected, let's say [2020-04-10, 2020-04-15] and a date range is clicked, such as 2020-04-01, a new range is started. This overrides the old range.
However, the hover classes suggest that either the start or the end date of the existing range are used as a start or end date of the new range.
Technically, default styles only applied hover styling when --selectRange class was set on parent wrapper, but you're right, there was no reason for these classes to be updated until first selection has been made. Fixed.
I noticed the following peculiarity regarding the
--hover
/--hoverEnd
/--hoverStart
classes:When a date range is selected, let's say
[2020-04-10, 2020-04-15]
and a date range is clicked, such as2020-04-01
, a new range is started. This overrides the old range.However, the hover classes suggest that either the start or the end date of the existing range are used as a start or end date of the new range.
I've made a codesandbox that visualizes which days get the hover/hoverStart/hoverEnd classes at https://codesandbox.io/s/react-calendar-hover-demo-np5n0.
As you can see, the hover classes have no relationship to the new value once there already is a value.
Also, the hover classes don't work correctly when hovering a date within the current date.
The text was updated successfully, but these errors were encountered: