tbleckert / react-select-search

⚡️ Lightweight select component for React
https://react-select-search.com
MIT License
676 stars 147 forks source link

How to change state value by entry? #64

Closed consciousweb closed 4 years ago

consciousweb commented 4 years ago

How can you write create a typical react input workflow with react-select-search? onChange is only fired on selection, not keypress so I cant access a state/update state stored value and have to use jquery to select the value if on non selected values.

tbleckert commented 4 years ago

I'm not sure what your intentions are, but you can use the headless mode to fully control the component. The input value is available in the snapshot and updates on input.