Fork me on GitHub

Hi all, anyone using re-com? If so, any suggestions on getting a typeahead focusing upon creation? I see in the source there is a TODO to add focus management like this. Any ideas much appreciated.


Have you tried using a form-3 component with :component-did-mount?


I.e. wrap the typeahead component into some other component that uses reagent.core/create-class, and in its :component-did-mount handler focus the typeahead component.


@U2FRKM4TW Thank you, going to try that now. Any ideas on getting at the element to call focus on? In general when trying to get at the sub elements what is the best practice? Do I just find the element using goog and the class name?


You should use React refs for that.