adobe / adobe/react-spectrum

`react-aria-components` - `CalendarCell`s are disabled before the current month when using `RangePicker` and two`CalendarGrid`s where the first is offset by -1

Open
#8,501 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 9m
Merged PRs (30d)
59

Description

### Provide a general summary of the issue here

It is not possible to create a date `RangePicker` with 2 `CalendarGrid`s where the current month is the the second calendar grid and the first is `offset` by -1.

When this configuration is set, for some reason the dates before the current month are set as disabled which makes this unusable.

Image

### 🤔 Expected Behavior?

We should be able to make a range picker with 2 calendar grids the second being the current date's month.

### 😯 Current Behavior

It is not possible to create a date `RangePicker` with 2 `CalendarGrid`s where the current month is the the second calendar grid and the first is `offset` by -1.

### 💁 Possible Solution

_No response_

### 🔦 Context

_No response_

### 🖥️ Steps to Reproduce

Simple reproduced project:
https://codesandbox.io/p/sandbox/red-star-68vsqv

### Version

1.10.1

### What browsers are you seeing the problem on?

Chrome

### If other, please specify.

_No response_

### What operating system are you using?

OSX

### 🧢 Your Company/Team

_No response_

### 🕷 Tracking Issue

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.