From 25406db4588dc380d5d08ca4e2823ca4b1c6ee57 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Mon, 30 Sep 2024 12:48:58 +0300 Subject: [PATCH] InputOtp: fix default modelValue --- packages/primevue/src/inputotp/BaseInputOtp.vue | 2 +- packages/primevue/src/inputotp/InputOtp.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/primevue/src/inputotp/BaseInputOtp.vue b/packages/primevue/src/inputotp/BaseInputOtp.vue index 390b7b897..38a6c6468 100644 --- a/packages/primevue/src/inputotp/BaseInputOtp.vue +++ b/packages/primevue/src/inputotp/BaseInputOtp.vue @@ -8,7 +8,7 @@ export default { props: { modelValue: { type: null, - default: false + default: null }, invalid: { type: Boolean, diff --git a/packages/primevue/src/inputotp/InputOtp.d.ts b/packages/primevue/src/inputotp/InputOtp.d.ts index 8443ee0a1..f7d39d8a1 100755 --- a/packages/primevue/src/inputotp/InputOtp.d.ts +++ b/packages/primevue/src/inputotp/InputOtp.d.ts @@ -140,7 +140,7 @@ export interface InputOtpTemplateEvents { export interface InputOtpProps { /** * Specifies whether a inputotp should be checked or not. - * @defaultValue false + * @defaultValue null */ modelValue?: boolean | string | undefined; /**