Strange Behaviour in useRangeCalendar When Selecting Range #4547
-
Hello, I've been pulling my hair out trying to work out what's going on in my RangeCalendar when selecting a range. As you can see from the clip below, I'm using the 'isDateUnavailable' prop to display blocked dates. However, when I start to select a range of dates, if a visible CalendarGrid has dates which are 'isUnavailable', anyy dates after those which are unavailable are also displayed as blocked while I am selecting the range. calendar-bug.movI'm basically using the example styling from the given Tailwind example in the docs, just with styling for 'isUnnavailable':
Can anyone see if I've made any glaring errors, or what may be causing this please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have you taken a look at https://react-spectrum.adobe.com/react-aria/useRangeCalendar.html#non-contiguous-ranges? |
Beta Was this translation helpful? Give feedback.
Have you taken a look at https://react-spectrum.adobe.com/react-aria/useRangeCalendar.html#non-contiguous-ranges?