adobe / adobe/react-spectrum

Combobox does not trigger form onChange event

Open
#5,955 5 comments 4 reactions 0 assignees View on GitHub
bug enhancement
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 5h
Merged PRs (30d)
58

Description

### Provide a general summary of the issue here

As user I would expect that combobox triggers the form on Change event.

### 🤔 Expected Behavior?

When I change selection of combobox it triggers form on Change event.

### 😯 Current Behavior

When used in the form no native events are triggered.

### 💁 Possible Solution

_No response_

### 🔦 Context

_No response_

### 🖥️ Steps to Reproduce

[codesandbox](https://codesandbox.io/p/sandbox/react-spectrum-playground-forked-qwnxzr?file=%2Fsrc%2FApp.js%3A118%2C51)

~[https://codesandbox.io/p/sandbox/react-spectrum-playground-forked-qwnxzr?file=%2Fsrc%2FApp.js%3A118%2C51](https://codesandbox.io/p/sandbox/react-spectrum-playground-forked-qwnxzr?file=%2Fsrc%2FApp.js%3A118%2C51)~

### Version

Latest

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

Chrome

### If other, please specify.

_No response_

### What operating system are you using?

Mac OS

### 🧢 Your Company/Team

_No response_

### 🕷 Tracking Issue

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction in src/App.js around line 118 of the linked CodeSandbox and inspect the Combobox form behavior in the repository. Verify the behavior in Chrome, then confirm that changing the selection triggers the form's onChange event as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.