Cannot change value
rwb196884 opened this issue · comments
rwb196884 commented
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
.
Can this be used for editing values or not?
Sudhanshu Yadav commented
Can you create a sandbox where it's not working?