diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 3ea015e6..36a178e9 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -1397,7 +1397,7 @@ "ts": "interface ComboBoxItem { id: string; text: string; }" } ], - "rest_props": { "type": "Element", "name": "div" } + "rest_props": { "type": "Element", "name": "input" } }, { "moduleName": "ComposedModal", @@ -2249,7 +2249,7 @@ { "type": "forwarded", "name": "blur", "element": "input" } ], "typedefs": [], - "rest_props": { "type": "Element", "name": "div" } + "rest_props": { "type": "Element", "name": "input" } }, { "moduleName": "DatePickerSkeleton", @@ -5430,7 +5430,7 @@ "ts": "interface MultiSelectItem { id: MultiSelectItemId; text: MultiSelectItemText; }" } ], - "rest_props": { "type": "Element", "name": "div" } + "rest_props": { "type": "Element", "name": "input" } }, { "moduleName": "NotificationActionButton", @@ -5841,7 +5841,7 @@ "ts": "type NumberInputTranslationId = \"increment\" | \"decrement\"" } ], - "rest_props": { "type": "Element", "name": "div" } + "rest_props": { "type": "Element", "name": "input" } }, { "moduleName": "NumberInputSkeleton", @@ -9797,7 +9797,7 @@ { "type": "forwarded", "name": "blur", "element": "input" } ], "typedefs": [], - "rest_props": { "type": "Element", "name": "div" } + "rest_props": { "type": "Element", "name": "input" } }, { "moduleName": "TimePickerSelect", diff --git a/docs/src/pages/components/MultiSelect.svx b/docs/src/pages/components/MultiSelect.svx index 3ac22723..018bd30f 100644 --- a/docs/src/pages/components/MultiSelect.svx +++ b/docs/src/pages/components/MultiSelect.svx @@ -24,6 +24,16 @@ To prevent alphabetical item ordering, pass an empty function to the `sortItem` sortItem="{() => {}}" /> +### Filterable + +`$$restProps` are spread to the underlying input element. + + + ### Initial selected items To select (or bind) items, pass an array of item ids to `selectedIds`. @@ -93,13 +103,7 @@ Set `direction` to `"top"` for the dropdown menu to appear above the input. {id: "2", text: "Fax"}]}" /> -### Filterable - ### Invalid state diff --git a/src/ComboBox/ComboBox.svelte b/src/ComboBox/ComboBox.svelte index 69b42adb..da93611f 100644 --- a/src/ComboBox/ComboBox.svelte +++ b/src/ComboBox/ComboBox.svelte @@ -160,7 +160,7 @@ } }}" /> -
+
{#if titleText}