We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
All NextItem components that are passed objects as values should be selectable.
NextItem
Only the final NextItem component works with arrow keys when the value is a passed object.
In debugging why this behavior was happening for Zendesk Support, this caught my eye:
The line of code is here:
react-components/packages/dropdowns/src/elements/Menu/Items/NextItem.tsx
Line 43 in 4ebc83f
The key in the object should be run through the passed itemToString downshift prop, if passed.
itemToString
value
In this sandbox, open the menu and notice the difference in behavior when hitting the right arrow key for the first item and the last:
https://codesandbox.io/s/serene-gould-tg21y
The text was updated successfully, but these errors were encountered:
Thanks @Austin94 ! Latest version confirmed to fix this!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Expectations
All
NextItem
components that are passed objects as values should be selectable.Reality
Only the final
NextItem
component works with arrow keys when the value is a passed object.In debugging why this behavior was happening for Zendesk Support, this caught my eye:
The line of code is here:
react-components/packages/dropdowns/src/elements/Menu/Items/NextItem.tsx
Line 43 in 4ebc83f
The key in the object should be run through the passed
itemToString
downshift prop, if passed.Steps to Reproduce
value
is an object of some kind.NextItem
– this does not workNextItem
– this does workIn this sandbox, open the menu and notice the difference in behavior when hitting the right arrow key for the first item and the last:
https://codesandbox.io/s/serene-gould-tg21y
Fine Print
The text was updated successfully, but these errors were encountered: