Skip to content

Commit

Permalink
fix: typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
rdjanuar committed Jan 9, 2025
1 parent 303de41 commit 8ba0eac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/runtime/components/InputMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,10 @@ function onUpdateOpen(value: boolean) {
}
function onRemoveTag(event: any) {
if (Array.isArray(props.modelValue)) {
const modelValue = props.modelValue
const filteredValue = modelValue.filter(value => !isEqual(value, event)) as SelectModelValue<T, V, M>
emits('update:modelValue', filteredValue)
if (props.multiple) {
const modelValue = props.modelValue as SelectModelValue<T, V, true>
const filteredValue = modelValue.filter(value => !isEqual(value, event))
emits('update:modelValue', filteredValue as SelectModelValue<T, V, M>)
}
}
Expand Down

0 comments on commit 8ba0eac

Please sign in to comment.