diff --git a/packages/vuetify/src/labs/VOtpInput/VOtpInput.tsx b/packages/vuetify/src/labs/VOtpInput/VOtpInput.tsx index 810f61f7c26..7591ce677bd 100644 --- a/packages/vuetify/src/labs/VOtpInput/VOtpInput.tsx +++ b/packages/vuetify/src/labs/VOtpInput/VOtpInput.tsx @@ -145,7 +145,7 @@ export const VOtpInput = genericComponent()({ target = 'prev' } else { requestAnimationFrame(() => { - inputRef.value[index].select() + inputRef.value[index]?.select() }) } } @@ -201,7 +201,7 @@ export const VOtpInput = genericComponent()({ if (val < 0) return IN_BROWSER && window.requestAnimationFrame(() => { - inputRef.value[val].select() + inputRef.value[val]?.select() }) })