ComboboxControl: the Reset button doesn't work when using the keyboard #63408
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Components
/packages/components
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Discovered while testing the 'Parent' setting for a post of type page.
Can be reproduced on the storybook as well, by enabling the
allowReset
prop.When using the keyboard, pressing the
Enter
key on the optional Reset button doesn not reset the combobox. Pressing the Spacebar key does work.Turns out when pressing the
Enter
key, thekeydown
event attached on the container div element fires and actually sets the currently selected suggestion.Step-by-step reproduction instructions
Parent
setting with the keyboard.allowReset
prop is set totrue
: https://wordpress.github.io/gutenberg/?path=/story/components-comboboxcontrol--default&args=allowReset:!trueScreenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: