Skip to content

Commit

Permalink
Fix primefaces#6776 use mergeProps on iconField pt for password compo…
Browse files Browse the repository at this point in the history
…nent
  • Loading branch information
Mohamedemad4 committed Sep 25, 2024
1 parent f487a2f commit b4f3fe9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/lib/password/Password.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,15 @@ export const Password = React.memo(
ptm('input')
);

const iconFieldProps = mergeProps({
className: cx('iconField')
}, ptm('iconField'))

let input = <InputText {...inputTextProps} />;

if (icon) {
input = (
<IconField className={cx('iconField')} pt={ptm('iconField')} __parentMetadata={{ parent: metaData }}>
<IconField {...iconFieldProps} __parentMetadata={{ parent: metaData }}>
{input}
<InputIcon>{icon}</InputIcon>
</IconField>
Expand Down

0 comments on commit b4f3fe9

Please sign in to comment.