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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
This happens when you have an input tied to state with on-change:
(om/component (html [:input {:value (:foo state) :on-change #(om/set-state! state :foo (.. % -target -value))}]))
The cursor is moved to the end after each update.
The fix in om.dom is to special case input elements to ensure they aren't re-rendered on update: https://github.com/swannodette/om/blob/master/src/om/dom.cljs#L7
The text was updated successfully, but these errors were encountered:
Patch without dependencies welcome.
Sorry, something went wrong.
8bcbef9
Fixed in 0.2.4. I copied the code from om.
0.2.4
om
No branches or pull requests
This happens when you have an input tied to state with on-change:
The cursor is moved to the end after each update.
The fix in om.dom is to special case input elements to ensure they aren't re-rendered on update: https://github.com/swannodette/om/blob/master/src/om/dom.cljs#L7
The text was updated successfully, but these errors were encountered: