Skip to content

Commit

Permalink
fix(input): don't perform HTML5 validation on updated model-value
Browse files Browse the repository at this point in the history
Running html5-validation immediately after model-value is updated is incorrect, because the view
has not updated, and HTML5 constraint validation has not adjusted.

Closes angular#6796
  • Loading branch information
caitp committed Mar 23, 2014
1 parent 635cdaa commit ec18622
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ng/directive/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,6 @@ function addNativeHtml5Validators(ctrl, validatorName, element) {
return value;
};
ctrl.$parsers.push(validator);
ctrl.$formatters.push(validator);
}
}

Expand Down

0 comments on commit ec18622

Please sign in to comment.