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

[Bug][dropdowns] Keyboard navigation for duplicate items with a dataset of objects #2179

Open
WissamProgress opened this issue Apr 17, 2024 · 0 comments
Labels
Bug Item which indicates that something is not working KendoReact pkg:Dropdowns SEV: High

Comments

@WissamProgress
Copy link
Collaborator

WissamProgress commented Apr 17, 2024

I'm submitting a...

  • Bug report

Current behavior

The keyboard navigation is also broken when setting the data to an array of objects and having values of the duplicate textField values. This is the case for all components in the dropdowns package.

It happens because the focusedItemIndex that is used in the keyboard navigation takes the textField as an argument and uses it for focusing the items. It should take the whole item instead.

Expected behavior

They keyboard navigation in this case takes into consideration the dataItemKey and not the textField. It is also possible to add a prop that allows the user to configure this based on their needs.

Minimal reproduction of the problem with instructions

  1. Bind the data to an array of objects
  2. Set identical text values for the items
  3. Navigate through the items using the up and down arrow keys

https://stackblitz.com/edit/react-z7esrx-sjbhww?file=app%2Fmain.tsx

This item is related to #1752 where this bug was fixed in the case where the data is bound to primitive values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Item which indicates that something is not working KendoReact pkg:Dropdowns SEV: High
Projects
None yet
Development

No branches or pull requests

1 participant