Open rwb196884 opened 1 year ago
const NumberFormatCustom = (props: NumberFormatProps) => { const { inputRef, ...other } = props; return ( <NumberFormat {...other} readOnly={false} disabled={false} getInputRef={inputRef} thousandSeparator="," //decimalScale={props.decimalScale} fixedDecimalScale={true} placeholder={moneyPlaceholder} //isNumericString onValueChange={(values: NumberFormatValues) => { console.log(`NumberFormat.onValueChange ${JSON.stringify(values)}`); }} /> ); };
A form element appears with a formatted value, but the value can't be changed. The onValueChange never fires, nor does the onChange that's hidden in ...other.
onValueChange
onChange
...other
Can this be used for editing values or not?
Can you create a sandbox where it's not working?
A form element appears with a formatted value, but the value can't be changed. The
onValueChange
never fires, nor does theonChange
that's hidden in...other
.Can this be used for editing values or not?