adobe / adobe/react-spectrum

Clicking outside the DatePicker can manipulate the focus of the DateSegment. (react-aria's DatePicker)

Open
#3,164 19 comments 2 reactions 0 assignees View on GitHub
browser bug
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 9m
Merged PRs (30d)
59

Description

# 🐛 Bug Report

Clicking outside the DatePicker can manipulate the focus of the DateSegment.

react-spectrum's DatePicker does not cause this phenomenon.
Only react-aria's DatePicker.

## 🤔 Expected Behavior

Clicking outside of DatePicker does not focus or move focus.

## 😯 Current Behavior

[![Image from Gyazo](https://i.gyazo.com/cb96c807a213f772de54af31f929fdf4.gif)](https://gyazo.com/cb96c807a213f772de54af31f929fdf4)

## 💁 Possible Solution

## 🔦 Context

## 💻 Code Sample
https://react-spectrum.adobe.com/react-aria/useDatePicker.html#example

## 🌍 Your Environment

| Software | Version(s) |
| ---------------- | ---------- |
| @react-stately/datepicker | ~3.0.0-rc.0 |
| @react-aria/datepicker | ~3.0.0-rc.0 |
| Browser | Chrome |
| Operating System | macOS |

## 🧢 Your Company/Team

## 🕷 Tracking Issue (optional)

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.