Open RikEskes opened 5 years ago
@trimox
Problem is that the browser returns an empty string for invalid values.
The setter coerce the empty string to a null value
and then set it as the new value for the input element
AFAIK Angular has no mechanism to handle html validation errors gracefully.
Describe the bug When inserting a value in a text field with its type set to number, one is able to use either the ',' (comma ) sign in the field or the '.' (dot) sign. This selection seems dependent on the locale settings of one's browser. However, I expect to be able to use both.
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect to have a dot (or comma) inserted into the field instead of having the field cleared. When browsers limit this behaviour to only on of the two signs dependent on the locale I at least expect to not have the input field cleared.
What Angular MDC version are you using? 1.0.3
What OS are you using?: Windows, Android and iOS.
What browser(s) is this bug affecting?: Chrome, Safari and Firefox