ソースを参照

pass type as value to fields.

because otherwise we'd have to `om/read` it in the change handler.
Lucas Stadler 12 年 前
コミット
e7ee050c2b
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      clj/clarity/cljs/clarity.cljs

+ 1 - 1
clj/clarity/cljs/clarity.cljs

@ -131,7 +131,7 @@
131 131
  (fn [[k t]]
132 132
    (dom/div #js {:className "field"}
133 133
      (dom/label nil (str k (when optional? " (optional)")))
134
      (om/build make-typed-input m {:opts {:type t, :key k, :val (k m)
134
      (om/build make-typed-input m {:opts {:type (om/value t), :key k, :val (k m)
135 135
                                           :optional? optional?}}))))
136 136
137 137
(defmethod make-typed-input 'HMap [m owner {type :type}]