adobe / adobe/react-spectrum

Range calendar fills in range when month change on mobile

Open
#9,214 1 comment 0 reactions 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

If you're on mobile or at least in browser on mobile there's an issue where selecting say the second of this month and then going back a month will show the selected range as starting from the 2nd of last month going into the next month.

### 🤔 Expected Behavior?

I don't think it should show anything.

### 😯 Current Behavior

https://react-spectrum.adobe.com/react-aria-starter/index.html?path=/docs/rangecalendar--docs

It'll happen here if you use mobile mode on the inspect.

### 💁 Possible Solution

Seems to be storing the day of the month as selected and getting it's wires crossed

### 🔦 Context

_No response_

### 🖥️ Steps to Reproduce

On mobile:

Select the second of this month.
Then go back a month.

### Version

Other

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

Chrome

### If other, please specify.

Happens in the docs

### What operating system are you using?

windows/android

### 🧢 Your Company/Team

UKSI

### 🕷 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.