0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

Add event to passed arguments [*]

[*] Needed for layout_container component
This commit is contained in:
Florian Schroedl 2024-05-29 09:02:26 +02:00
parent 384da8555d
commit 985d8d33ff

View file

@ -109,11 +109,11 @@
(swap! state* assoc :token-value value))
set-value
(fn [value]
(fn [value event]
(swap! state* assoc
:current-value value
:token-value value)
(when on-change (on-change value)))
(when on-change (on-change value event)))
select-item
(mf/use-fn
@ -135,7 +135,7 @@
(fn [event]
(let [value (-> event dom/get-target dom/get-value)
value (or (d/parse-double value) value)]
(set-value value)))
(set-value value event)))
handle-token-change-input
(fn [event]