adobe / adobe/react-spectrum

`ComboBox`'s `onBlur` is not getting triggered for Mobile view

Open
#7,737 1 comment 0 reactions 0 assignees View on GitHub
bug
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

The `onBlur` event for `ComboBox` does not trigger in Mobile view but functions as expected in Desktop view.

### 🤔 Expected Behavior?

The `onBlur` event gets triggered for both Desktop and Mobile views.

### 😯 Current Behavior

The `onBlur` event does not get triggered for Mobile view.

### 💁 Possible Solution

_No response_

### 🔦 Context

_No response_

### 🖥️ Steps to Reproduce

1. Use the react-spectrum ComboBox component. Here is an example - https://codesandbox.io/p/sandbox/amazing-gianmarco-h79hfr?file=%2Fsrc%2FApp.js%3A13%2C11
2. Change to mobile view to check if the onBlur event gets triggered.
3. onBlur is not triggered for mobile view.

### Version

@adobe/react-spectrum-3.30.0 @react-types/combobox-3.10.0

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

Chrome

### If other, please specify.

See the issue on all browsers

### What operating system are you using?

macOS Sonoma - 14.2.1

### 🧢 Your Company/Team

Adobe - Unified checkout

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