Skip to content
Snippets Groups Projects
Commit 39d7bb8b authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: don’t pass unhandled props to ComboBox component

parent 76109648
No related branches found
No related tags found
Loading
<template>
<ComboBox
v-model="modelValue"
v-bind="props"
v-bind="comboBoxProps"
:choices="filteredChoices"
:close-on-select="props.closeOnSelect ?? !Array.isArray(modelValue)"
:input-container-class="[
......@@ -80,6 +80,10 @@ defineSlots<{
const modelValue = defineModel<null | T | T[]>({ required: true })
const searchQuery = defineModel<string>('searchTerm', { required: false, default: '' })
const props = defineProps<ComboBoxSimpleProps<T>>()
const comboBoxProps = computed(() => {
const { searchProvider, choices, ...rest } = props
return rest
})
const debouncedSearchQuery = computedDebounced(searchQuery, (t) => (t.trim() ? 0.3 : 0))
const selectedIds = computed(() => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment