React-autosuggest: Add focus() function to component

Created on 11 May 2016  路  2Comments  路  Source: moroshko/react-autosuggest

I'm using this component inside of https://github.com/olahol/react-tagsinput.
It's working great in general, but react-tagsinput calls focus() on input when user clicks anywhere inside control area. It would be great if we can pass this focus() call to the input of react-autosuggest.

Most helpful comment

@szyablitsky You can get the input field and then call .focus() whenever you need. Is that what you are after, or did I misunderstood your request?

All 2 comments

@szyablitsky You can get the input field and then call .focus() whenever you need. Is that what you are after, or did I misunderstood your request?

@moroshko thank you! That's exactly what I was looking for.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AlgoTrader picture AlgoTrader  路  3Comments

raybooysen picture raybooysen  路  4Comments

devatlant picture devatlant  路  3Comments

mkaemmerer picture mkaemmerer  路  3Comments

gazpachu picture gazpachu  路  4Comments