Showing
1 changed file
with
1 additions
and
1 deletions
@@ -50,6 +50,7 @@ export abstract class EntityComponent<T extends BaseData<HasId>, | @@ -50,6 +50,7 @@ export abstract class EntityComponent<T extends BaseData<HasId>, | ||
50 | @Input() | 50 | @Input() |
51 | set isEdit(isEdit: boolean) { | 51 | set isEdit(isEdit: boolean) { |
52 | this.isEditValue = isEdit; | 52 | this.isEditValue = isEdit; |
53 | + this.cd.markForCheck(); | ||
53 | this.updateFormState(); | 54 | this.updateFormState(); |
54 | } | 55 | } |
55 | 56 | ||
@@ -107,7 +108,6 @@ export abstract class EntityComponent<T extends BaseData<HasId>, | @@ -107,7 +108,6 @@ export abstract class EntityComponent<T extends BaseData<HasId>, | ||
107 | } else { | 108 | } else { |
108 | this.entityForm.disable({emitEvent: false}); | 109 | this.entityForm.disable({emitEvent: false}); |
109 | } | 110 | } |
110 | - this.cd.markForCheck(); | ||
111 | } | 111 | } |
112 | } | 112 | } |
113 | 113 |