Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Select/Dropdown/MenuContainer): arrow key handling to focus items #11132

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

adamviktora
Copy link
Contributor

@adamviktora adamviktora commented Oct 23, 2024

Closes #11131

Potential problem: if consumers pass a component prop to MenuItem other than button / input / a, it won't focus the item. They can always override the onArrowUpDownKeyDown themselves, but I am wondering whether we should provide some prop to specify, what is the html element they want to focus.

@adamviktora adamviktora marked this pull request as draft October 23, 2024 16:21
@patternfly-build
Copy link
Contributor

patternfly-build commented Oct 23, 2024

@adamviktora adamviktora changed the title feat(Select/Dropdown): arrow key handling to focus items feat(Select/Dropdown/MenuContainer): arrow key handling to focus items Oct 25, 2024
@adamviktora adamviktora marked this pull request as ready for review October 25, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menu/Select/Dropdown - add arrow key handler to focus items from toggle
2 participants