From a2b48f496226c6478ef11997b39e93595edfeccc Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Wed, 4 May 2022 07:35:39 -0700 Subject: [PATCH] chore: rename translateWithIdInput to translateWithIdSelection --- src/ComboBox/ComboBox.svelte | 4 ++-- src/MultiSelect/MultiSelect.svelte | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ComboBox/ComboBox.svelte b/src/ComboBox/ComboBox.svelte index 46ef9224..97b8ead0 100644 --- a/src/ComboBox/ComboBox.svelte +++ b/src/ComboBox/ComboBox.svelte @@ -87,7 +87,7 @@ * Defaults to "Clear selected item" since a combo box can only have on selection. * @type {(id: "clearSelection") => string} */ - export let translateWithIdInput = undefined; + export let translateWithIdSelection = undefined; /** Set an id for the list box component */ export let id = "ccs-" + Math.random().toString(36); @@ -333,7 +333,7 @@ diff --git a/src/MultiSelect/MultiSelect.svelte b/src/MultiSelect/MultiSelect.svelte index c810cbbb..f72b6d99 100644 --- a/src/MultiSelect/MultiSelect.svelte +++ b/src/MultiSelect/MultiSelect.svelte @@ -103,10 +103,10 @@ /** * 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" if more than one item is selected * @type {(id: import("../ListBox/ListBoxSelection.svelte").ListBoxSelectionTranslationId) => string} */ - export let translateWithIdInput = undefined; + export let translateWithIdSelection = undefined; /** Specify the title text */ export let titleText = ""; @@ -382,7 +382,7 @@ })); if (fieldRef) fieldRef.blur(); }}" - translateWithId="{translateWithIdInput}" + translateWithId="{translateWithIdSelection}" disabled="{disabled}" /> {/if} @@ -447,7 +447,7 @@ inputValue = ''; open = false; }}" - translateWithId="{translateWithIdInput}" + translateWithId="{translateWithIdSelection}" disabled="{disabled}" open="{open}" />