You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be better if the user's input was kept as-is and simply raised validation errors. Imagine if the user accidentally typed the letter 'q' before Tab when they were trying to move to the next field. Would their input change to NaN, forcing them to go back and re-type the whole thing? If the validation always forcefully produces a valid result, then mistakes like that could get easily overlooked.
That said, I know that numeric field validation has implications in some tools when it comes to databinding so this may be unavoidable. If that is the case here, we should definitely change numeric fields to validate on losing focus instead.
Numeric fields are validated by forcing numeric conversion as the user types, leading to the following issues (and possibly more).
The text was updated successfully, but these errors were encountered: