fix(select): falsy item text should not override value (#2118)

Fixes #2117
This commit is contained in:
Eric Liu 2025-03-11 10:09:28 -07:00 committed by GitHub
commit 663b79ad05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 1 deletions

View file

@ -55,5 +55,5 @@
class={className}
{style}
>
{text || value}
{text ?? value}
</option>