Skip to content

Commit 9be245c

Browse files
authored
Merge branch 'master' into fix/v-menu-overlay-background-with-v-input
2 parents d668d6f + fc91e6d commit 9be245c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/vuetify/src/components/VOtpInput/VOtpInput.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export const VOtpInput = genericComponent<VOtpInputSlots>()({
198198

199199
model.value = clipboardText.split('')
200200

201-
inputRef.value?.[finalIndex].focus()
201+
focusIndex.value = finalIndex
202202
}
203203

204204
function reset () {
@@ -234,7 +234,6 @@ export const VOtpInput = genericComponent<VOtpInputSlots>()({
234234

235235
watch(model, val => {
236236
if (val.length === length.value) {
237-
focusIndex.value = length.value - 1
238237
emit('finish', val.join(''))
239238
}
240239
}, { deep: true })

0 commit comments

Comments
 (0)