diff --git a/libs/feature/search/src/lib/location-search/location-search.component.html b/libs/feature/search/src/lib/location-search/location-search.component.html index 783abed4b..6f4153093 100644 --- a/libs/feature/search/src/lib/location-search/location-search.component.html +++ b/libs/feature/search/src/lib/location-search/location-search.component.html @@ -7,4 +7,5 @@ icon="matPinDropOutline" [value]="currentLocation$ | async" [minCharacterCount]="1" + [allowSubmit]="true" > diff --git a/libs/feature/search/src/lib/location-search/location-search.component.ts b/libs/feature/search/src/lib/location-search/location-search.component.ts index 6f3bbf10d..9cfc406a7 100644 --- a/libs/feature/search/src/lib/location-search/location-search.component.ts +++ b/libs/feature/search/src/lib/location-search/location-search.component.ts @@ -17,6 +17,8 @@ import { map } from 'rxjs/operators' import { SearchService } from '../utils/service/search.service' import { CommonModule } from '@angular/common' import { TranslateModule } from '@ngx-translate/core' +import { provideIcons } from '@ng-icons/core' +import { matPinDropOutline } from '@ng-icons/material-icons/outline' @Component({ selector: 'gn-ui-location-search', @@ -25,6 +27,7 @@ import { TranslateModule } from '@ngx-translate/core' changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule, TranslateModule, AutocompleteComponent], + providers: [provideIcons({ matPinDropOutline })], }) export class LocationSearchComponent { // specific geocat