made client form great
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
(let [prop-value (if (seq prop-value)
|
||||
prop-value
|
||||
[])]
|
||||
(println "PROP VALUE IS")
|
||||
[form-builder/virtual-builder {:value prop-value
|
||||
:schema schema
|
||||
:on-change on-change}
|
||||
@@ -60,7 +61,7 @@
|
||||
[:button.button.is-outline
|
||||
{:type "button"
|
||||
:on-click (fn [e]
|
||||
(on-change (conj prop-value {::key next-key}))
|
||||
(on-change (conj prop-value {::key (random-uuid)}))
|
||||
(.stopPropagation e)
|
||||
(.preventDefault e))}
|
||||
[:span.icon [:i.fa.fa-plus]]
|
||||
|
||||
Reference in New Issue
Block a user