Skip to content

Commit

Permalink
fix(VOtpInput): disable input when prop.disabled is true (#18697)
Browse files Browse the repository at this point in the history
fixes #18690
  • Loading branch information
yuwu9145 committed Nov 16, 2023
1 parent f30e5eb commit 9d3eb14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VOtpInput/VOtpInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ export const VOtpInput = genericComponent<VOtpInputSlots>()({
class={[
'v-otp-input__field',
]}
disabled={ props.disabled }
inputmode={ props.type === 'number' ? 'numeric' : 'text' }
min={ props.type === 'number' ? 0 : undefined }
maxlength="1"
Expand Down

0 comments on commit 9d3eb14

Please sign in to comment.