fix(multi-select): ListBoxField and ListBoxSelection have different translateWithId props

This commit is contained in:
Eric Liu 2022-05-03 19:34:19 -07:00
commit 1588161325

View file

@ -100,6 +100,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;
/** Specify the title text */ /** Specify the title text */
export let titleText = ""; export let titleText = "";
@ -361,7 +373,7 @@
}}" }}"
id="{id}" id="{id}"
disabled="{disabled}" disabled="{disabled}"
translateWithId="{translateWithId}" translateWithId="{translateWithIdMenu}"
> >
{#if checked.length > 0} {#if checked.length > 0}
<ListBoxSelection <ListBoxSelection
@ -374,7 +386,7 @@
})); }));
if (fieldRef) fieldRef.blur(); if (fieldRef) fieldRef.blur();
}}" }}"
translateWithId="{translateWithId}" translateWithId="{translateWithIdInput}"
disabled="{disabled}" disabled="{disabled}"
/> />
{/if} {/if}
@ -439,7 +451,7 @@
inputValue = ''; inputValue = '';
open = false; open = false;
}}" }}"
translateWithId="{translateWithId}" translateWithId="{translateWithIdInput}"
disabled="{disabled}" disabled="{disabled}"
open="{open}" open="{open}"
/> />