[V2] Allow outside month selection in pickers #6667
Arisablad
started this conversation in
Feature requests
Replies: 0 comments
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.
Currently CalendarCell hardcodes isDisabled for dates outside the visible month:
This makes all dates from previous/next month non-interactive, even though React Aria’s useCalendarCell and RangeCalendar support handling arbitrary dates. This behavior is not configurable via props,
It should be possible to control this behavior via a prop, e.g.:
allowOutsideMonthSelection?: boolean
Suggested improvement
isDisabled:
(!allowOutsideMonthSelection && !isSameMonth(props.date, currentMonth)) ||
isPickerVisible
All reactions