Skip to content

Commit ae543ae

Browse files
fix: corrects pathing to obtaining children isInvalid/isTouched.
1 parent 69b553a commit ae543ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

addon/components/paper-form.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ export default class PaperForm extends Component {
7676
}
7777

7878
get isInvalid() {
79-
return this.children.isAny('isInvalid');
79+
return this.children.isAny('validation.isInvalid');
8080
}
8181

8282
get isTouched() {
83-
return this.children.isAny('isTouched');
83+
return this.children.isAny('validation.isTouched');
8484
}
8585

8686
get isInvalidAndTouched() {
@@ -112,15 +112,15 @@ export default class PaperForm extends Component {
112112

113113
@action localOnSubmit() {
114114
if (this.isInvalid) {
115-
this.children.setEach('isTouched', true);
115+
this.children.setEach('validation.isTouched', true);
116116
if (this.args.onInvalid) {
117117
this.args.onInvalid();
118118
}
119119
} else {
120120
if (this.args.onSubmit) {
121121
this.args.onSubmit();
122122
}
123-
this.children.setEach('isTouched', false);
123+
this.children.setEach('validation.isTouched', false);
124124
}
125125
}
126126
}

0 commit comments

Comments
 (0)