Commit 607fa4f
fix: initialize select fields with first option when no default is set
Controlled <select> with no matching value caused React state to stay empty
while browser visually displayed the first option — user thinks it's selected
but onChange never fires, leading to Zod validation failure on submit.
Closes #92
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4a7d8bc commit 607fa4f
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| 374 | + | |
374 | 375 | | |
375 | 376 | | |
376 | 377 | | |
| |||
0 commit comments