-
-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React :ref not working on input #121
Comments
@lgrapenthin I wasn't aware that :ref also takes a fn. Looks like they also plan to deprecate the use of strings as a :ref value. At the moment it is not possible to avoid
I think a fix for your issue could be to pass the :ref in |
A fn passed as :ref is not invoked with the DOM element but the component class instance.
Is there a way to avoid
wrap-form-element
, probably via a metadata hint? Also I'd be curious to know what the purpose of wrap-form-element is.https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute
The text was updated successfully, but these errors were encountered: