Creation work

This commit is contained in:
Jai A
2020-10-14 16:03:09 -07:00
parent bc998988c2
commit 205080a210
2 changed files with 65 additions and 18 deletions

View File

@@ -372,7 +372,7 @@ export default {
if (!sendRequest) await this.onSearchChange(1)
},
async onSearchChangeToTop(newPageNumber) {
if (process.client) window.scrollTo(0, 0)
if (process.client) window.scrollTo({ top: 0, behavior: 'smooth' })
await this.onSearchChange(newPageNumber)
},