You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a combobox with a native button to "clear" the content (query + selected value).
This button is placed in absolute position close to the combobox input.
I am using this function, everything work as intended when I click on the button with the mouse.
However, for accessibility reasons I need also to let it be activated with the keyboard, by pressing enter or space key.
This seems to enter in conflict with the internal comporment of the combobox (as said in the documentation "enter" triggers submit because the field is inside a form), and the value ends up still being selected
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am using a combobox with a native button to "clear" the content (query + selected value).
This button is placed in absolute position close to the combobox input.
I am using this function, everything work as intended when I click on the button with the mouse.
However, for accessibility reasons I need also to let it be activated with the keyboard, by pressing enter or space key.
This seems to enter in conflict with the internal comporment of the combobox (as said in the documentation "enter" triggers submit because the field is inside a form), and the value ends up still being selected
What can I do to acheive this ?
Beta Was this translation helpful? Give feedback.
All reactions