diff --git a/packages/radix-vue/src/TagsInput/TagsInputRoot.vue b/packages/radix-vue/src/TagsInput/TagsInputRoot.vue index 9018bf05d..74c1a30a1 100644 --- a/packages/radix-vue/src/TagsInput/TagsInputRoot.vue +++ b/packages/radix-vue/src/TagsInput/TagsInputRoot.vue @@ -142,7 +142,7 @@ provideTagsInputRootContext({ }, onRemoveValue: (index) => { if (index !== -1) - modelValue.value = modelValue.value.toSpliced(index, 1) + modelValue.value = [...modelValue.value].splice(index, 1) }, onInputKeydown: (event) => { const target = event.target as HTMLInputElement @@ -158,7 +158,7 @@ provideTagsInputRootContext({ if (selectedElement.value) { const index = collection.findIndex(i => i === selectedElement.value) - modelValue.value = modelValue.value.toSpliced(index, 1) + modelValue.value = [...modelValue.value].splice(index, 1) selectedElement.value = selectedElement.value === lastTag ? collection.at(index - 1) : collection.at(index + 1) event.preventDefault() }