Skip to content

Commit

Permalink
fix(admin-ui): Fix DisabledDirective making form dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Sep 30, 2019
1 parent b5899c1 commit 70e857d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export class DisabledDirective {
return;
}
if (val === false) {
this.formControlName.control.enable();
this.formControlName.control.enable({ emitEvent: false });
} else {
this.formControlName.control.disable();
this.formControlName.control.disable({ emitEvent: false });
}
}

Expand Down

0 comments on commit 70e857d

Please sign in to comment.