adobe / adobe/react-spectrum

ComboxBox ListBox doesn't retain filtered state after open closing

Open
#8,063 1 comment 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

The default behavior of a datalist does this so I think combobox should match

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist

### 🤔 Expected Behavior?

For the list to stay filtered upon close/open

### 😯 Current Behavior

The whole list renders

### 💁 Possible Solution

1. Match the datalist behavior
2. Expose a prop to opt into or out of the behavior

### 🔦 Context

_No response_

### 🖥️ Steps to Reproduce

1. Go to a combobox that accepts a custom value
2. type something
3. close popover
4. press down

### Version

^1.7.1

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

Chrome

### If other, please specify.

_No response_

### What operating system are you using?

Mac

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