0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-01 17:41:50 -05:00
This commit is contained in:
Florian Schroedl 2024-06-14 10:52:30 +02:00
parent c9df90577f
commit 0a86e3a651

View file

@ -61,9 +61,8 @@
state (mf/use-state initial-fields)
on-update-state-field (fn [idx e]
(->> (dom/get-target-val e)
(assoc-in @state [idx :value])
(reset! state)))
(let [value (dom/get-target-val e)]
(swap! state assoc-in [idx :value] value)))
on-submit (fn [e]
(dom/prevent-default e)