From 5bd427e01c89e178ceaba357ab1f392553c259bb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Dec 2021 16:04:45 +0100 Subject: Fix search on ios --- client/src/app/header/search-typeahead.component.html | 6 +++--- client/src/app/header/search-typeahead.component.ts | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/header/search-typeahead.component.html b/client/src/app/header/search-typeahead.component.html index 0ced249a7..9b21d3f86 100644 --- a/client/src/app/header/search-typeahead.component.html +++ b/client/src/app/header/search-typeahead.component.html @@ -1,7 +1,7 @@
  • diff --git a/client/src/app/header/search-typeahead.component.ts b/client/src/app/header/search-typeahead.component.ts index e10baea2b..0794ec8f4 100644 --- a/client/src/app/header/search-typeahead.component.ts +++ b/client/src/app/header/search-typeahead.component.ts @@ -152,7 +152,7 @@ export class SearchTypeaheadComponent implements OnInit, AfterViewChecked, OnDes } } - onSuggestionlicked (payload: SuggestionPayload) { + onSuggestionClicked (payload: SuggestionPayload) { this.doSearch(this.buildSearchTarget(payload)) } @@ -170,6 +170,11 @@ export class SearchTypeaheadComponent implements OnInit, AfterViewChecked, OnDes this.keyboardEventsManager.onKeydown(event) break + + case 'Enter': + event.stopPropagation() + this.doSearch() + break } } -- cgit v1.2.3