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'm using the selectsRange prop with showWeekPicker. The problem is that the endDate always defaults to the start of the week, which doesn't make sense in the context of a week picker.
When using the selectsRange prop with showWeekPicker, the endDate should automatically default to the last day of the week (e.g., Sunday in a week that starts on Monday or Saturday in a week that starts on Sunday). It would be more intuitive and user-friendly if the endDate automatically defaulted to the end of the week instead.
Alternatives considered
Manually calculating the end of the week after the user selects the start date and overriding the endDate programmatically.
Using a custom onChange handler to adjust the endDate after selection.
Both of these cases feels like a workaround that adds an extra unnecessary step.
The text was updated successfully, but these errors were encountered:
Additional Issue with showWeekPicker and showWeekNumbers
While working with the weekPicker feature, I noticed a separate issue when showWeekNumbers is enabled. Currently, it's possible to click on a week number even when all the dates within that week are excluded or disabled. This behavior can be confusing for users because the week number appears selectable when it shouldn't be.
Feature requests:
Week numbers where all dates in the corresponding week are excluded (disabled) should also be disabled.
There should be a visual distinction between enabled and disabled week numbers for better usability.
I'm using the
selectsRange
prop withshowWeekPicker
. The problem is that theendDate
always defaults to the start of the week, which doesn't make sense in the context of a week picker.When using the
selectsRange
prop withshowWeekPicker
, the endDate should automatically default to the last day of the week (e.g., Sunday in a week that starts on Monday or Saturday in a week that starts on Sunday). It would be more intuitive and user-friendly if theendDate
automatically defaulted to the end of the week instead.Alternatives considered
Both of these cases feels like a workaround that adds an extra unnecessary step.
The text was updated successfully, but these errors were encountered: