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:
parent
31165c4ce6
commit
cbb68acd75
1 changed files with 1 additions and 1 deletions
|
@ -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)]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue