-
Notifications
You must be signed in to change notification settings - Fork 64
Can't set ref to <Input> #92
Comments
Hi, sorry for the late answer. You're right, we need to fix this. I'll work on it. |
Still not working? |
No, sorry, I moved to another country and I'm starting everything for new version now that I have a PC |
Hey @AlgusDark I'm experiencing the same issue as stated above, so I consider the case still to be ongoing.
Here's an example setup: https://codesandbox.io/s/black-thunder-8enky?fontsize=14 I did stumbled upon this problem while trying to integrate Bloomer with React Hook Form The main mechanism to link that lib is using the
Here's an integrated example: https://codesandbox.io/s/react-hook-form-get-started-1z7bw?fontsize=14&hidenavigation=1&theme=dark Any assistance on closing this topic will be appreciated 🙇♂️ |
Sorry @kachar , the problem is that we don't have react forward ref in the components. I decided to rewrite the library to be more friendly. The quickest solution would be to start wrap the components in a forward ref, but my main focus is to rewrite the library as there are some utils that we don't need and could be done with stronger Types with TS and let the user to deal with errors instead of fix them. But that's something is not related in this issue. Would you like to make the |
I am unable to set a ref to a
Input
, which I want to use tofocus()
on it.It seems to be because
Input
is not declared as a class. (which is required to set refs)The text was updated successfully, but these errors were encountered: