Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 496cd59

Browse files
authored
Merge pull request #385 from openforge/fix/blog-scroll
Added scroll to top between blog pages
2 parents 348861d + c375ddb commit 496cd59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/app-blog/app-blog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ export class AppBlog {
194194
} else {
195195
this.getBlogPosts(newPage);
196196
}
197+
window.scrollTo(0,0)
197198
}
198199

199200
renderFeaturedPost(featuredPost: BlogPost, isLoading: boolean, isError: boolean) {

0 commit comments

Comments
 (0)