Skip to content

Commit e468da2

Browse files
committed
fix(InputOtp): put the name on an hidden input
Issue: #7025
1 parent 175da75 commit e468da2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/primevue/src/inputotp/InputOtp.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
22
<div :class="cx('root')" v-bind="ptmi('root')">
3+
<input v-if="$formName" type="hidden" :name="$formName" :value="modelValue" />
34
<template v-for="i in length" :key="i">
45
<slot :events="getTemplateEvents(i - 1)" :attrs="getTemplateAttrs(i - 1)" :index="i">
56
<OtpInputText
67
:value="tokens[i - 1]"
78
:type="inputType"
89
:class="cx('pcInputText')"
9-
:name="$formName"
1010
:inputmode="inputMode"
1111
:variant="variant"
1212
:readonly="readonly"

0 commit comments

Comments
 (0)