Skip to content

Commit 059ad79

Browse files
committed
Do not reset custom validity
1 parent fa54abe commit 059ad79

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

addon/mixins/validatable-input.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ export default Ember.Mixin.create({
131131
this.set('errorMessage', null);
132132
}
133133

134-
// We reset the state if we had any custom error, so that they do not "stick" around
135-
input.setCustomValidity('');
136-
137134
// If the input was never validated, we attach an additional listener so that validation is
138135
// run also on keyup. This makes the UX better as it removes error message as you type when
139136
// you try to fix the errors

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-cli-html5-validation",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"description": "The default blueprint for ember-cli addons.",
55
"directories": {
66
"doc": "doc",

0 commit comments

Comments
 (0)