diff --git a/frontend/src/app/shared/components/dropdown/dropdown.component.ts b/frontend/src/app/shared/components/dropdown/dropdown.component.ts index c766f77..2609bde 100644 --- a/frontend/src/app/shared/components/dropdown/dropdown.component.ts +++ b/frontend/src/app/shared/components/dropdown/dropdown.component.ts @@ -208,12 +208,13 @@ export class DropdownComponent implements ControlValueAccessor, Validator { public onFocus(): void { this.filteredItems.set(this.items()); + this.markAsTouched(); } public onBlur(): void { - if (!this.isMouseInDropdown) { + if (!this.isMouseInDropdown()) { this.closeDropdown(); - this.onTouched(); + this.markAsTouched(); } }