I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
Summary
I'm trying to use MaskedInput with mask from imask this way:
<MaskedInput
mask={Number}
maskOptions={{
scale: 2,
thousandsSeparator: " ",
padFractionalZeros: false,
normalizeZeros: false,
radix: ".",
mapToRadix: ["."],
min: 0,
max: 999999999,
}} .../>
It works correctly.
But when I change padFractionalZeros to true and start to change the decimal part, it works wrong. It only shows zeroes, no matter what digit I'm trying to put, and I have this error on the console :
"Element value was changed outside of mask. Syncronize mask using mask.updateValue() to work properly."
I'm trying to add a mask.updateValue() , but on console, I have an error. "updateValue() is not a function".
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
I'm submitting a ... [x] bug report [ ] feature request [ ] question about the decisions made in the repository [ ] question about how to use this project
Summary I'm trying to use MaskedInput with mask from imask this way: <MaskedInput mask={Number} maskOptions={{ scale: 2, thousandsSeparator: " ", padFractionalZeros: false, normalizeZeros: false, radix: ".", mapToRadix: ["."], min: 0, max: 999999999, }} .../> It works correctly. But when I change padFractionalZeros to true and start to change the decimal part, it works wrong. It only shows zeroes, no matter what digit I'm trying to put, and I have this error on the console : "Element value was changed outside of mask. Syncronize mask using mask.updateValue() to work properly." I'm trying to add a mask.updateValue() , but on console, I have an error. "updateValue() is not a function".
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)