mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(select): falsy item text
should fallback to value
(#2152)
This commit is contained in:
parent
436dea47e8
commit
61ea8dd82c
6 changed files with 32 additions and 15 deletions
|
@ -5,8 +5,12 @@
|
|||
*/
|
||||
export let value = "";
|
||||
|
||||
/** Specify the option text */
|
||||
export let text = "";
|
||||
/**
|
||||
* Specify the option text
|
||||
* If not specified, the value will be used as the text.
|
||||
* @type {string}
|
||||
*/
|
||||
export let text = undefined;
|
||||
|
||||
/** Set to `true` to hide the option */
|
||||
export let hidden = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue