mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
test(combo-box): assert id type
This commit is contained in:
parent
e7a0d46125
commit
0a19b9a151
1 changed files with 4 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
import type { ComboBoxItem } from "../types/ComboBox/ComboBox.svelte";
|
||||
|
||||
const items: ComboBoxItem[] = [
|
||||
{ id: "0", text: "Slack" },
|
||||
{ id: 0, text: "Slack" },
|
||||
{ id: "1", text: "Email" },
|
||||
{ id: "2", text: "Fax" },
|
||||
];
|
||||
|
@ -20,6 +20,9 @@
|
|||
titleText="Contact"
|
||||
placeholder="Select contact method"
|
||||
items="{items}"
|
||||
on:select="{(e) => {
|
||||
console.log(e.detail.selectedId);
|
||||
}}"
|
||||
/>
|
||||
|
||||
<ComboBox
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue