Keyboard navigation with SelectTypePlugin
#790
paulodetarsofm
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the
SelectTypePluginin an Angular app and I am defining the options that are displayed in the dropdown when editing a cell, but when I use the keyboard keys to navigate between options, it seems that internally the plugin uses a different sequence than the one being displayed.The values in the dropdown are sorted according to the
sourcedeclaration I pass in the settings, which is an array of strings, so I am not usinglabelKeyandlabelValue, as I do not have objects. They are not sorted alphabetically, they do not use any algorithm, they are simply declared in the order that makes the most sense when using our application, but it seems that for keyboard navigation, some internal logic is used and I couldn't even figure out what it would be. Initially, I thought it was in alphabetical order, but it is not, as you can see in the video. When you press down for the first time, the cursor focuses on the second item, and when you press again, it moves to the fourth item:Dropdown.mp4
Is there any way to indicate the sequence that should be used for keyboard navigation?
Beta Was this translation helpful? Give feedback.
All reactions