adobe / adobe/react-spectrum

Select does not propagate change event

Open
#6,217 7 comments 7 reactions 0 assignees View on GitHub
bug good first issue
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 you change a value in a Select element there is no change event that bubbles causing patterns like `` to stop working.

### 🤔 Expected Behavior?

The select should trigger a change event like normal form elements.

### 😯 Current Behavior

The `` element does not behave like a native `` element by not bubbling change events.

### 💁 Possible Solution

I believe the reason why this currently does not work is because the select just get's re-rendered. Maybe adding a manual change event in the `` would solve this.

### 🔦 Context

_No response_

### 🖥️ Steps to Reproduce

https://codesandbox.io/p/sandbox/twilight-voice-tjmwcl?file=%2Fsrc%2FApp.js%3A4%2C9

### Version

1.0.0-rc.0

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

Firefox, Chrome, Safari, Microsoft Edge

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