Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix(default-theme): fixed scroll on products listing when pagnation i…
Browse files Browse the repository at this point in the history
…s changed
  • Loading branch information
Malwurf authored Sep 4, 2020
1 parent d0e3b42 commit 5f9bbc2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<template #number="{page}">
<span
class="cms-element-product-listing__pagination__number"
v-bind:style="{
:style="{
'font-weight': pagination.currentPage === page ? 700 : 300,
}"
@click="changedPage(page)"
Expand Down Expand Up @@ -112,6 +112,7 @@ export default {
const changedPage = async (pageNumber) => {
await changePagination(pageNumber)
window.scrollTo(0, 0)
}
return {
Expand Down

1 comment on commit 5f9bbc2

@vercel
Copy link

@vercel vercel bot commented on 5f9bbc2 Sep 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.