mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33: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"
|
titleText="Contact"
|
||||||
selectedId="0"
|
selectedId="0"
|
||||||
items="{[
|
items="{[
|
||||||
{ id: '0', text: 'Slack' },
|
{ id: 0, text: 'Slack' },
|
||||||
{ id: '1', text: 'Email' },
|
{ id: '1', text: 'Email' },
|
||||||
{ id: '2', text: 'Fax' },
|
{ id: '2', text: 'Fax' },
|
||||||
]}"
|
]}"
|
||||||
|
on:select="{(e) => {
|
||||||
|
console.log(e.detail.selectedId);
|
||||||
|
}}"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Dropdown
|
<Dropdown
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue