mirror of
https://github.com/penpot/penpot.git
synced 2026-03-06 02:01:09 +00:00
🐛 Fix incorrect default value handling on select form input.
This commit is contained in:
@@ -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)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user