Change the input field type to text instead of number
Make the input field controlled
Strip any non-digit characters from the input
I have no idea if this is actually the fix for the problem since I can't reproduce it. However, this was the only place in the code that attempted to treat the value as a number, so it's possible the browser happened to try and display it in scientific notation for some reason.
Tested on Windows that I can still type digits in, use the backspace key, and paste in a CID without issue. Any non-digit characters simply don't appear.
Fixes #127
number
I have no idea if this is actually the fix for the problem since I can't reproduce it. However, this was the only place in the code that attempted to treat the value as a number, so it's possible the browser happened to try and display it in scientific notation for some reason.
Tested on Windows that I can still type digits in, use the backspace key, and paste in a CID without issue. Any non-digit characters simply don't appear.