fix: remove translateWithIdMenu, use translateWithId instead

This commit is contained in:
Eric Liu 2022-05-04 07:33:56 -07:00
commit ba8321ec8d
2 changed files with 2 additions and 15 deletions

View file

@ -82,13 +82,6 @@
*/ */
export let translateWithId = undefined; export let translateWithId = undefined;
/**
* Override the menu label based on the open state.
* Defaults to "Open menu" and "Close menu"
* @type {(id: any) => string}
*/
export let translateWithIdMenu = undefined;
/** /**
* Override the label of the clear button when the input has a selection. * Override the label of the clear button when the input has a selection.
* Defaults to "Clear selected item" since a combo box can only have on selection. * Defaults to "Clear selected item" since a combo box can only have on selection.
@ -246,7 +239,7 @@
}}" }}"
id="{id}" id="{id}"
disabled="{disabled}" disabled="{disabled}"
translateWithId="{translateWithIdMenu}" translateWithId="{translateWithId}"
> >
<input <input
bind:this="{ref}" bind:this="{ref}"

View file

@ -101,12 +101,6 @@
*/ */
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 label of the clear button when the input has a selection. * Override the label of the clear button when the input has a selection.
* Defaults to "Clear selected item" and "Clear all items" * Defaults to "Clear selected item" and "Clear all items"
@ -375,7 +369,7 @@
}}" }}"
id="{id}" id="{id}"
disabled="{disabled}" disabled="{disabled}"
translateWithId="{translateWithIdMenu}" translateWithId="{translateWithId}"
> >
{#if checked.length > 0} {#if checked.length > 0}
<ListBoxSelection <ListBoxSelection