mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
feat(Dropdown): selectedIndex -> selectedId (#1004)
* feat(breaking): selectedIndex -> selectedId in Dropdown * feat: omit `selectedIndex` from the `select` event
This commit is contained in:
parent
37f10ad1a2
commit
e11a893bee
7 changed files with 53 additions and 52 deletions
|
@ -3008,11 +3008,10 @@
|
|||
"reactive": false
|
||||
},
|
||||
{
|
||||
"name": "selectedIndex",
|
||||
"name": "selectedId",
|
||||
"kind": "let",
|
||||
"description": "Specify the selected item index",
|
||||
"type": "number",
|
||||
"value": "-1",
|
||||
"description": "Specify the selected item id",
|
||||
"type": "DropdownItemId",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
"constant": false,
|
||||
|
@ -3229,7 +3228,7 @@
|
|||
{
|
||||
"type": "dispatched",
|
||||
"name": "select",
|
||||
"detail": "{ selectedId: DropdownItemId, selectedIndex: number, selectedItem: DropdownItem }"
|
||||
"detail": "{ selectedId: DropdownItemId, selectedItem: DropdownItem }"
|
||||
}
|
||||
],
|
||||
"typedefs": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue