Skip to content

Commit 5fb54a5

Browse files
committed
validator bug fixed
1 parent 9d6e134 commit 5fb54a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

angular/src/shared/directives/equal-validator.directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class EqualValidator implements Validator {
3636
// value not equal
3737
if (control2 && value !== control2.value && !this.isReverse) {
3838
return {
39-
validateEqual: false
39+
validateEqual: true
4040
};
4141
}
4242

@@ -50,7 +50,7 @@ export class EqualValidator implements Validator {
5050

5151
// value not equal and reverse
5252
if (control2 && value !== control2.value && this.isReverse) {
53-
control2.setErrors({ validateEqual: false });
53+
control2.setErrors({ validateEqual: true });
5454
}
5555

5656
return null;

0 commit comments

Comments
 (0)