From 93be4e98d5ad79e6bf602e866937c8d1192798f7 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Thu, 17 Dec 2020 23:41:55 +0100 Subject: [PATCH] scroll to top when searching again --- src-ui/src/app/components/search/search.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src-ui/src/app/components/search/search.component.ts b/src-ui/src/app/components/search/search.component.ts index b2b10d632..4570ac3fa 100644 --- a/src-ui/src/app/components/search/search.component.ts +++ b/src-ui/src/app/components/search/search.component.ts @@ -41,6 +41,7 @@ export class SearchComponent implements OnInit { ngOnInit(): void { this.route.queryParamMap.subscribe(paramMap => { + window.scrollTo(0, 0) this.query = paramMap.get('query') this.more_like = paramMap.has('more_like') ? +paramMap.get('more_like') : null if (this.more_like) {