Parcourir la Source

fix the fallback for keywords.

Lucas Stadler 12 ans auparavant
Parent
commit
17af157bc0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      clj/clarity/cljs/clarity.cljs

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

90
90
91
(def keyword-pattern "^:(\\w+|\\w+(\\.\\w+)*\\/\\w+)$")
91
(def keyword-pattern "^:(\\w+|\\w+(\\.\\w+)*\\/\\w+)$")
92
92
93
(defmethod make-typed-input 'Keyword [m owner {:keys [key val] :as opts}]
93
(defmethod make-typed-input 'Keyword [m owner {:keys [type key val] :as opts}]
94
  (om/component
94
  (om/component
95
    (dom/input #js {:type "text"
95
    (dom/input #js {:type "text"
96
                    :value val
96
                    :value val