Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

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 #6796
Closes #6806
  • Loading branch information
caitp committed Mar 24, 2014
1 parent edfca4c commit b2363e3
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 @@ -450,7 +450,6 @@ function addNativeHtml5Validators(ctrl, validatorName, element) {
return value;
};
ctrl.$parsers.push(validator);
ctrl.$formatters.push(validator);
}
}

Expand Down

0 comments on commit b2363e3

Please sign in to comment.