diff --git a/lib/components/SInputDropdown.vue b/lib/components/SInputDropdown.vue index 4eec3e9b..dcaf29b2 100644 --- a/lib/components/SInputDropdown.vue +++ b/lib/components/SInputDropdown.vue @@ -141,6 +141,14 @@ const removable = computed(() => { return !!props.nullable }) +const selectedChips = computed(() => { + if (Array.isArray(selected.value)) { + return selected.value + } + + return selected.value ? [selected.value] : [] +}) + const ariaActiveDescendant = computed(() => { if (!isInlineSearch.value || !inlineActiveOption.value) { return undefined @@ -388,57 +396,32 @@ function focusInlineInput() { >