I think this a problem with the html implementation of a number input field.
Do you have an example of the type of characters that break? I tried with dollar signs commas and spaces and this happened maybe it’s a chrome thing…
A paste event might work well for this - that way you could amend the pasted text into the number the user expects - I think you’ll need to go into the realms of js/jQuery though.
Using the methods described here
A working proof of concept clone link: