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:
parent
384da8555d
commit
985d8d33ff
1 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue