From d33d2a8272a990dc9aaf194b1227275118de3234 Mon Sep 17 00:00:00 2001 From: kurilova Date: Wed, 18 Sep 2024 13:58:41 +0000 Subject: [PATCH] Mark dirty only multi select control when tab navigation --- .../src/app/components/dynamic-form/dynamic-form.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ui/src/app/components/dynamic-form/dynamic-form.component.ts b/modules/ui/src/app/components/dynamic-form/dynamic-form.component.ts index bdf03a194..3d6b13016 100644 --- a/modules/ui/src/app/components/dynamic-form/dynamic-form.component.ts +++ b/modules/ui/src/app/components/dynamic-form/dynamic-form.component.ts @@ -99,7 +99,9 @@ export class DynamicFormComponent implements OnInit { formControlName: string ) { if (optionIndex === optionLength - 1) { - this.getControl(formControlName).markAsDirty(); + this.getControl(formControlName).markAsDirty({ + onlySelf: true, + }); } }