Skip to content

Commit

Permalink
fix(InputMask): another approach to fix "p-filled not works fine" (#7354
Browse files Browse the repository at this point in the history
) thats avoids typing issue (#7586)
  • Loading branch information
leonardopavanello committed Feb 7, 2025
1 parent 1f70296 commit 5ecef60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/lib/inputmask/InputMask.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,10 @@ export const InputMask = React.memo(
}
}, [isValueUpdated]);

useUpdateEffect(() => {
updateFilledState();
}, [props.disabled])

const otherProps = InputMaskBase.getOtherProps(props);
const className = classNames(props.className, cx('root', { context }));

Expand All @@ -635,7 +639,6 @@ export const InputMask = React.memo(
name={props.name}
style={props.style}
className={className}
value={props.value}
{...otherProps}
placeholder={props.placeholder}
size={props.size}
Expand Down

0 comments on commit 5ecef60

Please sign in to comment.