mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-08-14 17:58:21 +00:00
[ACS-9374] Close dropdown on search submission
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
mat-icon-button
|
||||
matPrefix
|
||||
class="app-search-button"
|
||||
(click)="openDropdown()"
|
||||
(keydown.enter)="openDropdown()"
|
||||
(click)="searchSubmit()"
|
||||
(keydown.enter)="searchSubmit()"
|
||||
[title]="'SEARCH.BUTTON.TOOLTIP' | translate"
|
||||
>
|
||||
<mat-icon [attr.aria-label]="'SEARCH.BUTTON.ARIA-LABEL' | translate">search</mat-icon>
|
||||
|
@@ -123,10 +123,6 @@ export class SearchInputControlComponent implements OnInit, OnChanges {
|
||||
}
|
||||
}
|
||||
|
||||
openDropdown() {
|
||||
this.searchInput.nativeElement.focus();
|
||||
}
|
||||
|
||||
searchSubmit() {
|
||||
this.searchFieldFormControl.markAsTouched();
|
||||
|
||||
|
Reference in New Issue
Block a user