spectrum-web-components icon indicating copy to clipboard operation
spectrum-web-components copied to clipboard

[Feat]: Update combobox autocomplete behavior

Open rubencarvalho opened this issue 4 months ago • 0 comments

Code of conduct

  • [X] I agree to follow this project's code of conduct.

Impacted component(s)

combobox

Description of the requested feature

Here’s a refined version of the feature request description:

Our current combobox autocomplete implementation adheres to the W3C example for combobox patterns (see example). However, we have received customer feedback requesting a more common behavior: when a value is provided in the input, the full list of options should remain visible. The list should only be filtered once the user starts typing or deletes characters.

Currently, users must clear the entire input to view all available options when a default value is set or selected. This can create confusion, as they expect to see all options without having to clear the field.

React Spectrum’s combobox implementation already supports this requested behavior.

W3C guidelines do not specifically prohibit this requested behavior, so we would still be conforming to the standards while making this change.

Next steps may involve some research to determine if this behavior should become the default for our component or if it should be an optional configuration and we should confirm with design whether to maintain the current behavior as an option or entirely switch to the new behavior by default.

Mockups or screenshots

Current state: Screenshot 2024-10-15 at 17 03 43

Requested state: Screenshot 2024-10-15 at 17 09 30

Implementation notes or ideas

No response

rubencarvalho avatar Oct 15 '24 15:10 rubencarvalho