Using Downshift, how would one implement settting the inputValue
to the value of the currently highlighted item on ArrowUp/ArrowDown while persisting the filtered items until the user manually augments the inputValue
?
e.g:
Using Downshift, how would one implement settting the inputValue
to the value of the currently highlighted item on ArrowUp/ArrowDown while persisting the filtered items until the user manually augments the inputValue
?
e.g:
The aforementioned behaviour can be implemented leveraging the
stateReducer
anduseCombobox
hook and as follows:View the Code sandbox here