mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
fix(combo-box): ListBoxField and ListBoxSelection have different translateWithId
props
This commit is contained in:
parent
39e3424b6f
commit
5d3b61e71b
1 changed files with 14 additions and 2 deletions
|
@ -81,6 +81,18 @@
|
||||||
*/
|
*/
|
||||||
export let translateWithId = undefined;
|
export let translateWithId = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Override the default translation ids for the menu
|
||||||
|
* @type {(id: any) => string}
|
||||||
|
*/
|
||||||
|
export let translateWithIdMenu = undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Override the default translation ids for the input
|
||||||
|
* @type {(id: any) => string}
|
||||||
|
*/
|
||||||
|
export let translateWithIdInput = undefined;
|
||||||
|
|
||||||
/** Set an id for the list box component */
|
/** Set an id for the list box component */
|
||||||
export let id = "ccs-" + Math.random().toString(36);
|
export let id = "ccs-" + Math.random().toString(36);
|
||||||
|
|
||||||
|
@ -231,7 +243,7 @@
|
||||||
}}"
|
}}"
|
||||||
id="{id}"
|
id="{id}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
translateWithId="{translateWithId}"
|
translateWithId="{translateWithIdMenu}"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
bind:this="{ref}"
|
bind:this="{ref}"
|
||||||
|
@ -325,7 +337,7 @@
|
||||||
<ListBoxSelection
|
<ListBoxSelection
|
||||||
on:clear
|
on:clear
|
||||||
on:clear="{clear}"
|
on:clear="{clear}"
|
||||||
translateWithId="{translateWithId}"
|
translateWithId="{translateWithIdInput}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
open="{open}"
|
open="{open}"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue