We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d6e134 commit 5fb54a5Copy full SHA for 5fb54a5
angular/src/shared/directives/equal-validator.directive.ts
@@ -36,7 +36,7 @@ export class EqualValidator implements Validator {
36
// value not equal
37
if (control2 && value !== control2.value && !this.isReverse) {
38
return {
39
- validateEqual: false
+ validateEqual: true
40
};
41
}
42
@@ -50,7 +50,7 @@ export class EqualValidator implements Validator {
50
51
// value not equal and reverse
52
if (control2 && value !== control2.value && this.isReverse) {
53
- control2.setErrors({ validateEqual: false });
+ control2.setErrors({ validateEqual: true });
54
55
56
return null;
0 commit comments