fixed(input): input component bug, the cursor moves to the end after deleting the text in the middle

This commit is contained in:
Volankey 2020-03-16 18:04:25 +08:00
parent 8d6ad218eb
commit 329751b6d6

View File

@ -353,7 +353,7 @@ export default {
} }
e.target.value = value[index] e.target.value = value[index]
value[index] = changedValue value[index] = changedValue
this.$emit('input', `value`) this.$emit('input', value)
} }
}, },
handleInputBlur (e) { handleInputBlur (e) {