mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
test(dropdown): assert id type
This commit is contained in:
parent
c7ba17e053
commit
101fd9ca88
1 changed files with 4 additions and 1 deletions
|
@ -7,10 +7,13 @@
|
|||
titleText="Contact"
|
||||
selectedId="0"
|
||||
items="{[
|
||||
{ id: '0', text: 'Slack' },
|
||||
{ id: 0, text: 'Slack' },
|
||||
{ id: '1', text: 'Email' },
|
||||
{ id: '2', text: 'Fax' },
|
||||
]}"
|
||||
on:select="{(e) => {
|
||||
console.log(e.detail.selectedId);
|
||||
}}"
|
||||
/>
|
||||
|
||||
<Dropdown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue