Replies: 1 comment 3 replies
-
I see your issue here, @rnkln! Calling select multiple times in a row doesn't work well with the current controlled vs. uncontrolled selection logic in DayPicker. This is something we plan to address in the future. @rodgobbi, we should definitely review this part for the next major release. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to make a custom WeekNumber component, with the only purpose of selecting the entire week when clicked. My initial thought was to use the
select
function fromuseDayPicker<Range>()
, but this does not seem to support selecting a range, and is instead more geared towards clicking 1 date at a time.I thought this would be natural way of reusing the uncontrolled / controlled functionality of the day picker without having to wrap it in a custom context to pass down event handlers and such.
Good ideas are welcome
Beta Was this translation helpful? Give feedback.
All reactions