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
Describe the enhancement or change
Following the update that added arrow key handling on menus, this issue could be refined for the following tweaks:
Add a prop to allow consumers to customize the selectors that can be focused in the menuRef?.current?.querySelector call when shouldFocusFirstItemOnOpen is true. This would cover use cases where there's a filter search before the actual menu content for example.
Refactor the logic so that either the first selected item is focused, otherwise the first item is focused. This would be for Select or a custom Menu implementation that is essentially a select. A related prop (shouldFocusSelectedItem) would also be useful.
This could be worth a spike to see whether the existing API could be simplified in any way, e.g. combining similar props into its own interface, similar to CarHeader and its actions prop, or how complicated either of the above items may be to implement.
Is this request originating from a Red Hat product team? If so, which ones and is there any sort of deadline for this enhancement?
Any other information?
The text was updated successfully, but these errors were encountered:
Describe the enhancement or change
Following the update that added arrow key handling on menus, this issue could be refined for the following tweaks:
menuRef?.current?.querySelector
call whenshouldFocusFirstItemOnOpen
is true. This would cover use cases where there's a filter search before the actual menu content for example.shouldFocusSelectedItem
) would also be useful.This could be worth a spike to see whether the existing API could be simplified in any way, e.g. combining similar props into its own interface, similar to CarHeader and its
actions
prop, or how complicated either of the above items may be to implement.Is this request originating from a Red Hat product team? If so, which ones and is there any sort of deadline for this enhancement?
Any other information?
The text was updated successfully, but these errors were encountered: