Skip to content

Commit 3ba1471

Browse files
committed
Fix combobox with multiple values
1 parent 7158279 commit 3ba1471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Combobox.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const model = ref<Pair|Pair[]|null>(multiple.value ? [] : null) // {key:string,v
5454
5555
function update() {
5656
// Can be {key,value} when updated with setModel()
57-
let modelValue = props.modelValue && typeof props.modelValue == 'object'
57+
let modelValue = props.modelValue && typeof props.modelValue == 'object' && !Array.isArray(props.modelValue)
5858
? props.modelValue.key
5959
: props.modelValue
6060
if (modelValue == null || modelValue === '') {

0 commit comments

Comments
 (0)