affinipay / react-bootstrap-autosuggest

A modern combo-box built for React and Bootstrap
https://affinipay.github.io/react-bootstrap-autosuggest/
ISC License
56 stars 18 forks source link

Force the autosuggest to pick the element on top of the list from another component #6

Closed Gothbag closed 7 years ago

Gothbag commented 8 years ago

Greetings, I'm looking for a way to be able to force the Autosuggest to select the first suggestion from another component, like say a Search button, given what's been typed in. Is that possible?

Thank you very much

trevorr commented 8 years ago

Could you be a little more specific about the scenario? It should be easy to change the selected item in general, since you just need to set the React state, but I'm guessing that's not what you're after. A before and after picture of the interaction, even if just a rough sketch, would be helpful.

Gothbag commented 7 years ago

Thanks for the attention. Sorry, my question was not well phrased nor thought out. I'm closing this.