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
In EuiSelectable (and EuiSelectableTemplateSitewide by extension), the Home and End key is currently configured to move around the options, as seen in the following snippet:
I've received feedback from my users that they expected the Home and End key to behave differently.
In the scenario they encountered, they typed a search term and found no results. Realizing their mistake, they tried using the Home or End key to move around the text and make adjustments to their search term. In this scenario, it does nothing because there were no results shown and it leaves them confused.
I'm sure the eui team has your own considerations for the alternate behavior, but seeing that the team plans to use EuiSelectable in more components (#4054), can I suggest an option for outside consumers to opt out of this behavior?
Please let me know if this is not something the team is keen on
The text was updated successfully, but these errors were encountered:
So the reason we do this is because it is recommended by the ARIA practices spec but it looks like in the latest version it tweaks it slightly to only recommend the custom behavior if the text isn't editable.
Though I guess you could build a non-editable combobox with our base components, I don't think that's a specific use case for us so maybe we just get rid of this all together.
Hey,
In
EuiSelectable
(andEuiSelectableTemplateSitewide
by extension), theHome
andEnd
key is currently configured to move around the options, as seen in the following snippet:eui/src/components/selectable/selectable.tsx
Lines 272 to 285 in db3ddc1
I've received feedback from my users that they expected the
Home
andEnd
key to behave differently.In the scenario they encountered, they typed a search term and found no results. Realizing their mistake, they tried using the
Home
orEnd
key to move around the text and make adjustments to their search term. In this scenario, it does nothing because there were no results shown and it leaves them confused.I'm sure the eui team has your own considerations for the alternate behavior, but seeing that the team plans to use
EuiSelectable
in more components (#4054), can I suggest an option for outside consumers to opt out of this behavior?Please let me know if this is not something the team is keen on
The text was updated successfully, but these errors were encountered: