mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 04:39:19 +00:00
feat(breaking): selectedIndex -> selectedId in Dropdown
This commit is contained in:
parent
32edfa59dd
commit
aa6396f02a
7 changed files with 47 additions and 44 deletions
5
types/Dropdown/Dropdown.svelte.d.ts
vendored
5
types/Dropdown/Dropdown.svelte.d.ts
vendored
|
@ -25,10 +25,9 @@ export interface DropdownProps
|
|||
itemToString?: (item: DropdownItem) => string;
|
||||
|
||||
/**
|
||||
* Specify the selected item index
|
||||
* @default -1
|
||||
* Specify the selected item id
|
||||
*/
|
||||
selectedIndex?: number;
|
||||
selectedId?: DropdownItemId;
|
||||
|
||||
/**
|
||||
* Specify the type of dropdown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue