Skip to content

Commit

Permalink
fix(VOtpInput): update internalValue on paste
Browse files Browse the repository at this point in the history
fixes #14536
  • Loading branch information
KaelWD committed Dec 27, 2021
1 parent c58f02a commit bab2fa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VOtpInput/VOtpInput.ts
Expand Up @@ -267,6 +267,7 @@ export default baseMixins.extend<options>().extend({
newOtp[appIdx] = inputDataArray[i].toString()
}
this.otp = newOtp
this.internalValue = this.otp.join('')
const targetFocus = Math.min(index + inputDataArray.length, maxCursor)
this.changeFocus(targetFocus)

Expand Down

0 comments on commit bab2fa2

Please sign in to comment.