react-input-mask icon indicating copy to clipboard operation
react-input-mask copied to clipboard

I have created a numeric mask with 17 position '99999999999999999' but somehow it is not working properly.

Open sk81308 opened this issue 5 years ago • 1 comments

For example, I have created a mask '99999999999999999' e input the data '11111111111111111', and the result is '11111111111111112'

It only happens when my numeric mask is greater than 16 positions.

Is there any limitation in relation to the size of the mask?

sk81308 avatar Dec 14 '20 05:12 sk81308

Did you store the data as string or did you convert it to number? JavaScript can only handle around 15-digit precision for Number so the bug might be there

varoot avatar Jan 29 '21 00:01 varoot