-
Notifications
You must be signed in to change notification settings - Fork 412
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
ReagentInput :ref
broken
#259
Comments
Great catch! The patch looks good too as far as I can tell – I'll put that into a 0.6.1. Thanks! |
FWIW I do use string based |
BTW I use |
Check PR #260, looks like ReagentInput will be using findDOMNode so it doesn't need to touch refs at all. |
42ba166 broke using
:ref
attribute with input elements. This is because:ref
attribute is always overriden for these elements:reagent/src/reagent/impl/template.cljs
Line 186 in 42ba166
If the code keeps on going using
:ref
callback, it must keep track of the original function and call that. If ref callback is used, string ref can never be supported here, but maybe that is not a problem as those haven't really worked with Reagent anyway.The text was updated successfully, but these errors were encountered: