From 9f6a8cfc8b294ee919e226b4b5aa374d567215b9 Mon Sep 17 00:00:00 2001 From: Melloware Date: Thu, 1 Aug 2024 13:48:20 -0400 Subject: [PATCH] Fix #6964: InputOtp passthrough input correctly --- components/lib/inputotp/InputOtp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/inputotp/InputOtp.js b/components/lib/inputotp/InputOtp.js index bc445875bc..32836fbe74 100644 --- a/components/lib/inputotp/InputOtp.js +++ b/components/lib/inputotp/InputOtp.js @@ -199,7 +199,7 @@ export const InputOtp = React.memo( onBlur, onPaste }; - const inputElementProps = mergeProps({ + const inputElementProps = { id: inputElementIndex, key: inputElementIndex, value: tokens[inputElementIndex] || '', @@ -214,7 +214,7 @@ export const InputOtp = React.memo( 'aria-label': ariaLabel('otpLabel', { 0: inputElementIndex + 1 }), className: cx('input'), pt: ptm('input') - }); + }; const inputElement = props?.inputTemplate ? ( ObjectUtils.getJSXElement(props?.inputTemplate, { events: inputElementEvents,