From 1a022a8363a0d982f5d6f7fb9e8c61f3ee53faa1 Mon Sep 17 00:00:00 2001 From: mchouliara Date: Mon, 26 Aug 2024 15:50:02 +0300 Subject: [PATCH] single + auto complete > register touched --- .../auto-complete/multiple/multiple-auto-complete.component.ts | 1 + .../auto-complete/single/single-auto-complete.component.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.ts b/frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.ts index ae91dc69b..dcd7d9795 100644 --- a/frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.ts +++ b/frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.ts @@ -312,6 +312,7 @@ export class MultipleAutoCompleteComponent extends _CustomComponentMixinBase imp if (this.inputValue.length > 1 && this.autocomplete.options && this.autocomplete.options.length > 0 && this.autoSelectFirstOptionOnBlur) { this.optionSelectedInternal(this.autocomplete.options.first.value); } + this._onTouched(); } diff --git a/frontend/src/app/library/auto-complete/single/single-auto-complete.component.ts b/frontend/src/app/library/auto-complete/single/single-auto-complete.component.ts index 212f31722..3b547b323 100644 --- a/frontend/src/app/library/auto-complete/single/single-auto-complete.component.ts +++ b/frontend/src/app/library/auto-complete/single/single-auto-complete.component.ts @@ -284,6 +284,8 @@ export class SingleAutoCompleteComponent extends _CustomComponentMixinBase imple this.inputValue = ''; document.getElementById(($event.target).id).focus(); } + + this._onTouched(); } onChange = (_: any) => { };