We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(rum/defcs InputRefTestHook [s] (let [r (rum/create-ref)] [:input {:width 20 :ref r :value "test" :on-focus #(js/console.log (rum/deref r))}]))
log output with :value "test"
:value "test"
log output without :value
:value
The old approach of using rum/dom-node seems to work fine with inputs that have a :value key.
rum/dom-node
The text was updated successfully, but these errors were encountered:
Hmmmm, I think this might be related to the fact that Sablono wraps inputs into a component (to work around async updates and jumping caret issues).
So with value set you get an instance of a wrapper component, but w/o value attr Sablono doesn't wrap the input which gives you a plain DOM node.
value
Sorry, something went wrong.
Once #205 goes in we won't have input wrappers anymore.
Yeah this issue has been unresolved since 2016 r0man/sablono#121
fixed in 0.12.0
No branches or pull requests
log output with
:value "test"
log output without
:value
The old approach of using
rum/dom-node
seems to work fine with inputs that have a:value
key.The text was updated successfully, but these errors were encountered: