mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(dropdown): strongly type translateWithId
(#1286)
This commit is contained in:
parent
0e88a24a55
commit
d242849780
5 changed files with 38 additions and 30 deletions
|
@ -14,6 +14,10 @@
|
|||
on:select="{(e) => {
|
||||
console.log(e.detail.selectedId);
|
||||
}}"
|
||||
translateWithId="{(id) => {
|
||||
console.log(id); // "open" | "close"
|
||||
return id;
|
||||
}}"
|
||||
let:item
|
||||
let:index
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue