re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
az 2021-03-13T23:40:28.214800Z

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.

p-himik 2021-03-14T08:44:35.215500Z

You should use React refs for that.

p-himik 2021-03-13T23:54:24.214900Z

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

p-himik 2021-03-13T23:55:31.215100Z

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.