QSelect: Add prop to disable keyboard navigation #18086
Unanswered
abethke-woodport
asked this question in
Ideas / Proposals
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.
-
Hi,
I'm working on an app that is incredibly heavy on forms, particularly selects/dropdowns. Because of the way my options are formatted, the default QSelect keyboard navigation works very poorly. Because of this issue, I would like a way to disable the default QSelect keyboard navigation.
For example, my options might look something like this:
My users' expectation is that if they click on a dropdown and type "def," they'll get the option that starts with those letters. By default, though, the QSelect will select ABC, since the letters d, e, and f are all included in the full option label.
It is already possible to override this by listening to the keydown event, and that's what I did, but this isn't a perfect solution. The default QSelect listener is still running, and sometimes ends up throwing errors for reasons I haven't fully investigated; I assume it has something to do with my listener changing the selected option while it's running. Allowing the default keyboard navigation to be disabled (or, I suppose, overridden more directly) would alleviate this problem.
Beta Was this translation helpful? Give feedback.
All reactions