Closed erikcw closed 8 years ago
I'm not able to repruce the issue, below code works as expected:
(defn radio [label name value]
[:div.radio
[:label
[:input {:field :radio :name name :value value}]
label]])
(defn home-page []
(let [doc (atom {})]
(fn []
[:div
[bind-fields
(radio "Region" :radiotest :region)
doc]
[:p (str @doc)]])))
the example from the docs appears to work correctly as well:
(defn home-page []
(let [doc (atom {})]
(fn []
[:div
[bind-fields
[:div
[:input {:field :radio :value :a :name :radioselection} "foo"]
[:input {:field :radio :value :b :name :radioselection} "bar"]
[:input {:field :radio :value :c :name :radioselection} "baz"]]
doc]
[:p (str @doc)]])))
Using the same deps in my project.clj
[reagent "0.5.0"]
[reagent-forms "0.5.1"]
[cljsjs/react "0.13.1-0"]
The ":name" field of the radio button component causes Reagent to blowup with this error:
Here is the stack trace:
I tested with the following (copied from the reagent-forms demo to be sure I wasn't mistyping...):
reagent-forms 0.5.1 reagent 0.5 React.js 0.13.1