Skip to content

Commit 9f6a8cf

Browse files
authored
Fix primefaces#6964: InputOtp passthrough input correctly
1 parent 358ea3b commit 9f6a8cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/lib/inputotp/InputOtp.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export const InputOtp = React.memo(
199199
onBlur,
200200
onPaste
201201
};
202-
const inputElementProps = mergeProps({
202+
const inputElementProps = {
203203
id: inputElementIndex,
204204
key: inputElementIndex,
205205
value: tokens[inputElementIndex] || '',
@@ -214,7 +214,7 @@ export const InputOtp = React.memo(
214214
'aria-label': ariaLabel('otpLabel', { 0: inputElementIndex + 1 }),
215215
className: cx('input'),
216216
pt: ptm('input')
217-
});
217+
};
218218
const inputElement = props?.inputTemplate ? (
219219
ObjectUtils.getJSXElement(props?.inputTemplate, {
220220
events: inputElementEvents,

0 commit comments

Comments
 (0)