Fix meta key with inputs

This commit is contained in:
Juho Teperi 2018-06-18 01:03:25 +03:00
parent 2c90353fce
commit 198a070cb1
1 changed files with 6 additions and 6 deletions

View File

@ -266,15 +266,15 @@
props (nth argv first nil)
hasprops (or (nil? props) (map? props))
jsprops (convert-props (if hasprops props) parsed)
first-child (+ first (if hasprops 1 0))]
first-child (+ first (if hasprops 1 0))
key (-> (meta argv) get-key)
jsprops (if (nil? key)
jsprops
(oset jsprops "key" key)) ]
(case comp
"input" (react/createElement reagent-input jsprops)
"textarea" (react/createElement reagent-textarea jsprops)
(let [key (-> (meta argv) get-key)
p (if (nil? key)
jsprops
(oset jsprops "key" key))]
(make-element argv comp p first-child)))))
(make-element argv comp jsprops first-child))))
(defn str-coll [coll]
(if (dev?)