fix(select): falsy item text should fallback to value (#2152)

This commit is contained in:
Nick Wing 2025-04-18 12:34:12 -05:00 committed by GitHub
commit 61ea8dd82c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 32 additions and 15 deletions

View file

@ -9,7 +9,8 @@ export type SelectItemProps = {
/**
* Specify the option text
* @default ""
* If not specified, the value will be used as the text.
* @default undefined
*/
text?: string;