From 5ecef60b5c9579f86489d48f4f8a1a9c1c5d5c3e Mon Sep 17 00:00:00 2001 From: Leonardo Pavanello Date: Fri, 7 Feb 2025 12:36:48 -0300 Subject: [PATCH] fix(InputMask): another approach to fix "p-filled not works fine" (#7354) thats avoids typing issue (#7586) --- components/lib/inputmask/InputMask.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/lib/inputmask/InputMask.js b/components/lib/inputmask/InputMask.js index 8d030abd39..b5af6670f0 100644 --- a/components/lib/inputmask/InputMask.js +++ b/components/lib/inputmask/InputMask.js @@ -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 })); @@ -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}