You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone, hi @ericgio - as the title suggests, I'm trying to override the default behavior of the tab key when using the typeahead component.
Presently when a user hits tab the currently highlighted option is 'forgotten' and the next typeahead comes into focus. While I still want the tab button to blur the current input and focus the next - I also want the currently highlighted option to be selected.
I've tried implementing this through an onKeyDown function, which attempts to dispatch the 'enter' key when the 'tab' key is pressed. However this approach doesn't seem to be working. Any thoughts?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone, hi @ericgio - as the title suggests, I'm trying to override the default behavior of the tab key when using the typeahead component.
Presently when a user hits tab the currently highlighted option is 'forgotten' and the next typeahead comes into focus. While I still want the tab button to blur the current input and focus the next - I also want the currently highlighted option to be selected.
I've tried implementing this through an onKeyDown function, which attempts to dispatch the 'enter' key when the 'tab' key is pressed. However this approach doesn't seem to be working. Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions