Skip to content

Commit 3c38b7e

Browse files
Merge branch 'w2p-129946_enforce-non-repeatable-fields-in-submission-forms-7.6' into w2p-129946_enforce-non-repeatable-fields-in-submission-forms-main
2 parents 91a019b + b9468ab commit 3c38b7e

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
@@ -186,7 +186,6 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
186186
*/
187187
openDropdown(sdRef: NgbDropdown) {
188188
if (!this.model.readOnly) {
189-
this.group.markAsUntouched();
190189
this.inputText = null;
191190
this.updatePageInfo(this.model.maxOptions, 1);
192191
this.loadOptions(false);
@@ -339,4 +338,9 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
339338
this.currentValue = result;
340339
}
341340

341+
onBlur(event: Event) {
342+
super.onBlur(event);
343+
this.group.markAsTouched();
344+
}
345+
342346
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class FormService {
217217
});
218218
}
219219

220-
field.markAsUntouched();
220+
field.markAsUntouched({ onlySelf: true });
221221
}
222222

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

0 commit comments

Comments
 (0)