validateInput when the value in the store changes (https://github.com/woocommerce/woocommerce-blocks/pull/11108)
This commit is contained in:
parent
04e298050c
commit
eb383203f0
|
@ -166,6 +166,8 @@ const ValidatedTextInput = forwardRef<
|
|||
|
||||
if ( formattedValue !== value ) {
|
||||
onChange( formattedValue );
|
||||
} else {
|
||||
validateInput( true );
|
||||
}
|
||||
}
|
||||
}, [ validateInput, customFormatter, value, previousValue, onChange ] );
|
||||
|
|
Loading…
Reference in New Issue