Can we turn off keyboard event listeners for Select Primitive? #2285
Unanswered
neelduttahere
asked this question in
Help
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 trying to implement a select component with a custom search field, that filters the select items based on input to the text field. Still, when I try to type some specific letters, it shifts focus from the text field to the select items that start with the letter I pressed on the keyboard. Sometimes it directly throws the following error instead:
Uncaught TypeError: Cannot read properties of undefined (reading 'ref')
But on pressing some specific letters, I directly get this error also:
Uncaught TypeError: Cannot read properties of null (reading 'focus')
Considering the above issues, I was wondering if there was a way to disable keyboard-related focus events for the SelectPrimitve.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions