Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Imperatively set focus to input #158

Open
dannymatkovsky opened this issue Sep 29, 2020 · 1 comment
Open

Imperatively set focus to input #158

dannymatkovsky opened this issue Sep 29, 2020 · 1 comment

Comments

@dannymatkovsky
Copy link

Is there any recommended way of setting focus to input fields?
The normal way to imperatively manipulate react components is using refs, but Buffet components in particular InputText do not forward refs.
Maybe a good idea would be to add refs forwarding to certain components?

@soupette
Copy link
Contributor

soupette commented Oct 1, 2020

I agree the components should forward the refs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants