Skip to content

Commit

Permalink
Use :default-checked instead of :checked
Browse files Browse the repository at this point in the history
re-frame seems to have trouble with controlled vs uncontrolled input elements.
Looks like using :default-value helps though:
day8/re-frame#39 (comment)
  • Loading branch information
Kauko committed Dec 11, 2018
1 parent f1e43d1 commit 66fd171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cljs/rems/application.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@
:name (str "license" id)
:disabled readonly
:class (when validation "is-invalid")
:checked approved
:default-checked approved
:on-change (set-license-approval id)}]
[:span.form-check-label content]]
[field-validation-message validation title]])
Expand Down

0 comments on commit 66fd171

Please sign in to comment.