Closed jasiskis closed 8 years ago
When the referenced atom is dynamically changed the radio button option is not selected accordingly.
eg:
(def project-form [:div [:input.radio-inline {:field :radio :value true :name :approved} "Yes"] [:input.radio-inline {:field :radio :value false :name :approved} "No"]]) (defn project-page [] (let [project (atom {:approved false})] (js/setTimeout #(reset! project {:approved true}) 1000) (fn [] [:div.container [bind-fields project-form project] [:button {:on-click #(js/console.log (str @project))}]])))
sounds like the same issue https://github.com/reagent-project/reagent-forms/issues/19
When the referenced atom is dynamically changed the radio button option is not selected accordingly.
eg: