Revert "Work inside OnPush components"

This reverts commit dd781a1457.
pull/9223/head
Oliver Günther 4 years ago
parent dd781a1457
commit 022321b560
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 4
      frontend/src/app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component.ts

@ -7,7 +7,6 @@ import {
EventEmitter,
forwardRef,
SimpleChanges,
ChangeDetectorRef,
} from "@angular/core";
import { FormlyForm } from "@ngx-formly/core";
import { DynamicFormService } from "../../services/dynamic-form/dynamic-form.service";
@ -159,7 +158,6 @@ export class DynamicFormComponent extends UntilDestroyedMixin implements Control
private _pathHelperService:PathHelperService,
private _notificationsService:NotificationsService,
private _formsService: FormsService,
private _changeDetectorRef: ChangeDetectorRef,
) {
super();
}
@ -307,8 +305,6 @@ export class DynamicFormComponent extends UntilDestroyedMixin implements Control
this.fields = this.fieldsSettingsPipe ? this.fieldsSettingsPipe(fields) : fields;
this.innerModel = model;
this._changeDetectorRef.detectChanges();
if (!this.isStandaloneForm) {
this.onChange(this.innerModel);
}

Loading…
Cancel
Save