Skip to content

Commit

Permalink
fix(inputotp): complete value on form submittion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Michálek committed Jan 16, 2025
1 parent f481158 commit d5e78c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/inputotp/InputOtp.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<div :class="cx('root')" v-bind="ptmi('root')">
<input type="hidden" :name="$formName" :value="modelValue" />
<template v-for="i in length" :key="i">
<slot :events="getTemplateEvents(i - 1)" :attrs="getTemplateAttrs(i - 1)" :index="i">
<OtpInputText
:value="tokens[i - 1]"
:type="inputType"
:class="cx('pcInputText')"
:name="$formName"
:inputmode="inputMode"
:variant="variant"
:readonly="readonly"
Expand Down

0 comments on commit d5e78c9

Please sign in to comment.