Skip to content

Commit

Permalink
Do not reset custom validity
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Aug 15, 2016
1 parent fa54abe commit 059ad79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions addon/mixins/validatable-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,6 @@ export default Ember.Mixin.create({
this.set('errorMessage', null);
}

// We reset the state if we had any custom error, so that they do not "stick" around
input.setCustomValidity('');

// If the input was never validated, we attach an additional listener so that validation is
// run also on keyup. This makes the UX better as it removes error message as you type when
// you try to fix the errors
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-cli-html5-validation",
"version": "0.2.3",
"version": "0.2.4",
"description": "The default blueprint for ember-cli addons.",
"directories": {
"doc": "doc",
Expand Down

0 comments on commit 059ad79

Please sign in to comment.