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 hope you’re doing well. I have a question regarding range selection with the date picker in @ark-ui/vue version 3.14.0.
When I pass the dates as [start, end], everything works as expected, and the cells in the range are highlighted. However, when I pass them in reverse order as [end, start], the cells between those two dates are not marked as in-range and therefore aren’t highlighted. This issue seems to occur when the component props are updated with the reversed dates.
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
-
Hi there! 👋🏻
I hope you’re doing well. I have a question regarding range selection with the date picker in
@ark-ui/vue
version3.14.0
.When I pass the dates as
[start, end]
, everything works as expected, and the cells in the range are highlighted. However, when I pass them in reverse order as[end, start]
, the cells between those two dates are not marked asin-range
and therefore aren’t highlighted. This issue seems to occur when the component props are updated with the reversed dates.Is this expected behavior?
Screencast.from.2024-09-30.10-28-55.webm
Repro repo
Thank you for your help, and I appreciate your work on this amazing library!
Wishing you a great day! ☮️
Beta Was this translation helpful? Give feedback.
All reactions