This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Form elements are not revalidated if not touched after a reset #1605
Closed
Description
For instance :
<form role="form" name="form" novalidate>
<input type="text" ng-required="true" ng-model="inputValue">
<button type="reset">reset</button>
<button type="submit" ng-click="submit()" ng-disabled="form.invalid">submit</button>
</form>
- The input is required and is firstly invalid.
- If we fill it, it becomes valid
- Then, we reset the form, the input becomes empty
- The input becames valid while it is not
- We can submit the form while it sould not be allowed
Expected result : when the form is resetted, the validators should be reevaluated and the input should be flagged as invalid