adobe / adobe/react-spectrum

When i put input element in Overlay,and set shouldContainFocus, then use tab key to open the overlay, focus to input, then I can't use the mouse to blur the input focus

Open
#8,869 8 comments 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

When i put input element in Overlay,and set shouldContainFocus, then use tab key to open the overlay, focus to input, then I can't use the mouse to blur the input focus.

Image

### 🤔 Expected Behavior?

the focus shoud be blur when click the other area

### 😯 Current Behavior

the focus always on input

### 💁 Possible Solution

_No response_

### 🔦 Context

_No response_

### 🖥️ Steps to Reproduce

https://stackblitz.com/edit/vitejs-vite-h2as2nzi?file=src%2FApp.tsx

### Version

latest

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

Chrome

### If other, please specify.

_No response_

### What operating system are you using?

macos

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