react-typeahead icon indicating copy to clipboard operation
react-typeahead copied to clipboard

Get options array from TypeaheadSelector?

Open juanmnl opened this issue 9 years ago • 1 comments

Is there a simple way of getting the options array from the TypeaheadSelector sub-component (the results that print in the dropdown), so i can use them and filter another view?
Sure I'm missing something in the docs

juanmnl avatar Oct 19 '15 23:10 juanmnl

Hey @juanmnl , there is not currently an official way. It's stored in state.visible. Technically it's available via this.refs.Typeahead.state.visible, assuming your component has ref Typeahead. But I wouldn't recommend that. I'd accept a pull request that exposes state.visible in a component function.

trshafer avatar Oct 29 '15 17:10 trshafer