SelectItem: fix to use the value when text is undefined after #2118

This commit is contained in:
Nick Wing 2025-04-18 09:35:23 -05:00
commit 4295e9740c
6 changed files with 30 additions and 15 deletions

View file

@ -7,3 +7,8 @@
<SelectItem value={0} text="Zero" />
<SelectItem value={1} text="One" />
</Select>
<Select labelText="Undefined text">
<SelectItem value={2} />
<SelectItem value={0} text="Zero" />
<SelectItem value={1} text="One" />
</Select>