Skip to content

Commit

Permalink
fix(VOtpInput): add chain operator to select fn calls
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Oct 4, 2023
1 parent 313f5d5 commit 2dee949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vuetify/src/labs/VOtpInput/VOtpInput.tsx
Expand Up @@ -145,7 +145,7 @@ export const VOtpInput = genericComponent<VOtpInputSlots>()({
target = 'prev'
} else {
requestAnimationFrame(() => {
inputRef.value[index].select()
inputRef.value[index]?.select()
})
}
}
Expand Down Expand Up @@ -201,7 +201,7 @@ export const VOtpInput = genericComponent<VOtpInputSlots>()({
if (val < 0) return

IN_BROWSER && window.requestAnimationFrame(() => {
inputRef.value[val].select()
inputRef.value[val]?.select()
})
})

Expand Down

0 comments on commit 2dee949

Please sign in to comment.