mirror of
https://github.com/status-im/reagent.git
synced 2025-01-13 13:24:47 +00:00
Use .. to access event props in demo bmi calc
This commit is contained in:
parent
81344fd61b
commit
2a54e5136e
@ -81,7 +81,7 @@
|
|||||||
[:input {:type "range" :value value :min min :max max
|
[:input {:type "range" :value value :min min :max max
|
||||||
:style {:width "100%"}
|
:style {:width "100%"}
|
||||||
:on-change (fn [e]
|
:on-change (fn [e]
|
||||||
(swap! bmi-data assoc param (.-target.value e))
|
(swap! bmi-data assoc param (.. e -target -value))
|
||||||
(when (not= param :bmi)
|
(when (not= param :bmi)
|
||||||
(swap! bmi-data assoc :bmi nil)))}])
|
(swap! bmi-data assoc :bmi nil)))}])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user