Skip to content

Commit 5c1e294

Browse files
committed
don't deselect option if selecting same option in Autocomplete
1 parent b725ae9 commit 5c1e294

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/components/Autocomplete.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@ function select(option:any) {
264264
emit('update:modelValue', newValues)
265265
} else {
266266
let value = option
267-
if (props.modelValue == option) {
268-
value = null
269-
}
270267
emit('update:modelValue', value)
271268
}
272269
}

0 commit comments

Comments
 (0)