This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
<input type="number" max="{{max}}"> does not set $error.max property #2404
Closed
Description
When using an input of type number, with the max (or min) attribute set from the model, then the max field is not set in the error object of the input. This is due to the fact that in method "numberInputType", the value of attr.max is undefined. It is (probably) set from the model only later.
Checking the HTML, shows that the max attribute gets the correct value, set from the model.
In summary, the following does not work as expected:
input type="number" max="{{max}}"
The $error for this input field does not contain a boolean value named "max".
Here is a demo : http://plnkr.co/edit/YiExG5GpFt5MKKXoO4GE