Skip to content

Commit b9468ab

Browse files
129946: Prevent non-repeatable error message from being hidden
1 parent de7587e commit b9468ab

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/app/shared/form/builder/ds-dynamic-form-ui/models/scrollable-dropdown/dynamic-scrollable-dropdown.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
9393
*/
9494
openDropdown(sdRef: NgbDropdown) {
9595
if (!this.model.readOnly) {
96-
this.group.markAsUntouched();
9796
sdRef.open();
9897
}
9998
}
@@ -183,4 +182,9 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
183182
this.currentValue = result;
184183
}
185184

185+
onBlur(event: Event) {
186+
super.onBlur(event);
187+
this.group.markAsTouched();
188+
}
189+
186190
}

src/app/shared/form/form.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class FormService {
191191
});
192192
}
193193

194-
field.markAsUntouched();
194+
field.markAsUntouched({ onlySelf: true });
195195
}
196196

197197
public resetForm(formGroup: UntypedFormGroup, groupModel: DynamicFormControlModel[], formId: string) {

0 commit comments

Comments
 (0)