Unfriendly: pasted punctuation in Number fields blanks the field

I think this a problem with the html implementation of a number input field.

W3Schools Tryit Editor

Do you have an example of the type of characters that break? I tried with dollar signs commas and spaces and this happened :slightly_smiling_face: maybe it’s a chrome thing…

vuVqnFow34

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.

jQuery - Paste Event for Text Box | Rick's Blog

Using the methods described here

Select specific component with javascript

A working proof of concept clone link:

1 Like