Skip to content

Commit

Permalink
Fix primefaces#6964: InputOtp passthrough input correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Aug 1, 2024
1 parent 358ea3b commit 9f6a8cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/inputotp/InputOtp.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export const InputOtp = React.memo(
onBlur,
onPaste
};
const inputElementProps = mergeProps({
const inputElementProps = {
id: inputElementIndex,
key: inputElementIndex,
value: tokens[inputElementIndex] || '',
Expand All @@ -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,
Expand Down

0 comments on commit 9f6a8cf

Please sign in to comment.