Skip to content

Commit

Permalink
Merge pull request #1 from Sofianel5/aiba-patch-1
Browse files Browse the repository at this point in the history
fix radio buttons?
  • Loading branch information
Sofianel5 authored May 7, 2021
2 parents 41a887f + 3923736 commit bd5ace0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src_front/buddylistcljs_front_authentication/dev/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@

(defn auth-type-form []
[:form
[:input {:type :radio :name :auth-type :value :login :checked true :on-change #(swap! state assoc :type :login)}]
[:input {:type :radio :name :auth-type :value :login :checked (= (:type @state) :login) :on-change #(swap! state assoc :type :login)}]
[:p "Log in"]
[:input {:type :radio :name :auth-type :value :sign-up :on-change #(swap! state assoc :type :sign-up)}]
[:input {:type :radio :name :auth-type :value :sign-up :checked (= (:type @state) :sign-up) :on-change #(swap! state assoc :type :sign-up)}]
[:p "Sign up"]])

(defn root-component []
Expand All @@ -57,4 +57,4 @@
(.getElementById js/document "app")))

(defn init! [setting]
(mount-root setting))
(mount-root setting))

0 comments on commit bd5ace0

Please sign in to comment.