{"action":"created","issue":{"url":"https://api.github.com/repos/reagent-project/reagent-forms/issues/36","labels_url":"https://api.github.com/repos/reagent-project/reagent-forms/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/reagent-project/reagent-forms/issues/36/comments","events_url":"https://api.github.com/repos/reagent-project/reagent-forms/issues/36/events","html_url":"https://github.com/reagent-project/reagent-forms/issues/36","id":55108339,"number":36,"title":"Nothing seems to work, and element id's are duplicated","user":{"login":"antishok","id":1644031,"avatar_url":"https://avatars.githubusercontent.com/u/1644031?v=3","gravatar_id":"","url":"https://api.github.com/users/antishok","html_url":"https://github.com/antishok","followers_url":"https://api.github.com/users/antishok/followers","following_url":"https://api.github.com/users/antishok/following{/other_user}","gists_url":"https://api.github.com/users/antishok/gists{/gist_id}","starred_url":"https://api.github.com/users/antishok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antishok/subscriptions","organizations_url":"https://api.github.com/users/antishok/orgs","repos_url":"https://api.github.com/users/antishok/repos","events_url":"https://api.github.com/users/antishok/events{/privacy}","received_events_url":"https://api.github.com/users/antishok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-22T02:52:39Z","updated_at":"2015-01-22T04:35:06Z","closed_at":null,"body":"I can't seem to get any bindings to work, following the examples.\r\nThe text field isn't editable, the checkbox can't be toggled, the radio buttons are all wacky, and the doc isn't getting updated.\r\nI suppose it's some silly issue on my part.. but I can't figure it out.\r\nUsing reagent 0.5.0-alpha, reagent-forms 0.4.1\r\n\r\nAlso, I don't understand why the elements should get an ID equal to the given :id path. They have nothing to do with each other. Also, for radio-buttons for example the :id is supposed to be the same for each radio, which causes multiple radios with the same ID, which isn't valid.\r\n\r\nThanks!  \r\n\r\n```clojure\r\n(ns streamz.core\r\n  (:require [reagent.core :as r]\r\n            [reagent-forms.core :as rf]))\r\n\r\n(def form\r\n  [:div\r\n   [:input {:field :checkbox :id :checkboxselection}]\r\n   [:input {:field :text :id :firstname}]\r\n   [:input {:field :radio :value :a :name :foo :id :radioselection} \"foo\"]\r\n   [:input {:field :radio :value :b :name :foo :id :radioselection} \"bar\"]\r\n   [:input {:field :radio :value :c :name :foo :id :radioselection} \"baz\"]])\r\n\r\n(defn app []\r\n  (let [doc (atom {:radioselection :b \r\n                   :firstname \"\"\r\n                   :checkboxselection true})]\r\n    (fn []\r\n      [:div\r\n       [rf/bind-fields form doc]\r\n       [:label (str @doc)]])))\r\n      \r\n(r/render [app] (.-body js/document))\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/reagent-project/reagent-forms/issues/comments/70970304","html_url":"https://github.com/reagent-project/reagent-forms/issues/36#issuecomment-70970304","issue_url":"https://api.github.com/repos/reagent-project/reagent-forms/issues/36","id":70970304,"user":{"login":"yogthos","id":121208,"avatar_url":"https://avatars.githubusercontent.com/u/121208?v=3","gravatar_id":"","url":"https://api.github.com/users/yogthos","html_url":"https://github.com/yogthos","followers_url":"https://api.github.com/users/yogthos/followers","following_url":"https://api.github.com/users/yogthos/following{/other_user}","gists_url":"https://api.github.com/users/yogthos/gists{/gist_id}","starred_url":"https://api.github.com/users/yogthos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yogthos/subscriptions","organizations_url":"https://api.github.com/users/yogthos/orgs","repos_url":"https://api.github.com/users/yogthos/repos","events_url":"https://api.github.com/users/yogthos/events{/privacy}","received_events_url":"https://api.github.com/users/yogthos/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T04:35:06Z","updated_at":"2015-01-22T04:35:06Z","body":"It's done intentionally for convenience. Since the id is generally unique I see no reason to have to specify one id for document binding and another id for the DOM. The id is a unique key for that element. \r\n\r\nI've updated radio buttons to use `:name` for binding, so that should address that problem. All other elements have a single container, so using `:id` is correct in those scenarios.\r\n\r\nIf you can link to the repo, I'll take a look and see if I can reproduce the issue."}}