Commit 78b6c81
committed
fix(Select): display placeholder when value is empty string
The generic Select changes broke placeholder display when form values
are initialized with empty strings. The condition 'value != null'
returns true for empty strings, causing String(value) to display
instead of the placeholder.
Fixed by checking both null/undefined AND empty string conditions.
Fixes failing test in select.stories.tsx that expected placeholder
text to be displayed initially.1 parent 06474b1 commit 78b6c81
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
0 commit comments