[ACS-9374] Close dropdown on search submission

This commit is contained in:
Shivangi917
2025-07-29 08:25:31 -04:00
parent d12081950a
commit 8d41d92a48
2 changed files with 2 additions and 6 deletions

View File

@@ -5,8 +5,8 @@
mat-icon-button mat-icon-button
matPrefix matPrefix
class="app-search-button" class="app-search-button"
(click)="openDropdown()" (click)="searchSubmit()"
(keydown.enter)="openDropdown()" (keydown.enter)="searchSubmit()"
[title]="'SEARCH.BUTTON.TOOLTIP' | translate" [title]="'SEARCH.BUTTON.TOOLTIP' | translate"
> >
<mat-icon [attr.aria-label]="'SEARCH.BUTTON.ARIA-LABEL' | translate">search</mat-icon> <mat-icon [attr.aria-label]="'SEARCH.BUTTON.ARIA-LABEL' | translate">search</mat-icon>

View File

@@ -123,10 +123,6 @@ export class SearchInputControlComponent implements OnInit, OnChanges {
} }
} }
openDropdown() {
this.searchInput.nativeElement.focus();
}
searchSubmit() { searchSubmit() {
this.searchFieldFormControl.markAsTouched(); this.searchFieldFormControl.markAsTouched();