Combobox component usability issue when there is an existing selection and a new selection is typed #33920
Closed
3 tasks done
Labels
[Package] Components
/packages/components
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Is there an existing issue for this?
Have you tried deactivating all plugins except Gutenberg?
Have you tried replicating the bug using a default theme e.g. Twenty Twenty?
Description
Filtering the results of the combobox and pressing the enter key leads to an unexpected selection, ignoring your input.
The code responsible for this behaviour is here: https://github.com/WordPress/gutenberg/blob/trunk/packages/components/src/combobox-control/index.js#L112-L117
Step-by-step reproduction instructions
Expected Behavior
If you filter the list and press enter, the top match should be selected.
Current Behavior
If you filter the list and press enter, the previous match is selected.
Screenshots or screen recording (optional)
No response
Code snippet (optional)
No response
WordPress Information
No response
Gutenberg Information
No response
What browsers are you seeing the problem on?
No response
Device Information
No response
Operating System Information
No response
The text was updated successfully, but these errors were encountered: