From 2698d790e913fdb5d006d470046736fcbcb195c9 Mon Sep 17 00:00:00 2001 From: Maxime Robert Date: Fri, 17 May 2019 11:03:00 +0100 Subject: [PATCH] fix(lib): when calling setDisabledState do not emit event to formGroup Discovered that by default, enabling or disabling the form group will trigger the `valueOnChanges` observable of the form. In our case, we do not want to do that because it'd then call `onChange` and `onTouched`. --- projects/ngx-sub-form/src/lib/ngx-sub-form.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/ngx-sub-form/src/lib/ngx-sub-form.component.ts b/projects/ngx-sub-form/src/lib/ngx-sub-form.component.ts index 9eb437bb..64fabdf3 100644 --- a/projects/ngx-sub-form/src/lib/ngx-sub-form.component.ts +++ b/projects/ngx-sub-form/src/lib/ngx-sub-form.component.ts @@ -198,9 +198,9 @@ export abstract class NgxSubFormComponent