0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Fix incorrect default value handling on select form input.

This commit is contained in:
Andrey Antukh 2021-03-08 11:40:29 +01:00
parent 31165c4ce6
commit cbb68acd75

View file

@ -170,7 +170,7 @@
(let [input-name (get props :name)
form (or form (mf/use-ctx form-ctx))
value (get-in @form [:data input-name] default)
value (or (get-in @form [:data input-name]) default)
cvalue (d/seek #(= value (:value %)) options)
on-change (fm/on-input-change form input-name)]