Is it possible to stop users from entering decimal values when trying to enter values for integer tags? I thought the props.format
would limit this, but it seems they can enter whatever they want (including multiple decimal points) and it's evaluated after the entry has been submitted
I don't think you can guarantee the value in the field is always valid across browsers; welcome to the wonderful world of the web:
The upcoming form component should be able to help somewhat with input validation, but it will likely still have the same core issue of indeterminate browser behavior; it just might help you alert users to the problem quicker.
2 Likes