! Fix user fav list having "scroll to top" effect when "load more" clicked (#1854)

This commit is contained in:
PikachuEXE 2021-11-02 19:37:38 +08:00 committed by GitHub
parent 506ce48fd9
commit ef9efc9c75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 6 deletions

View File

@ -37,12 +37,16 @@ export default Vue.extend({
} }
}, },
watch: { watch: {
activeData() { // This implementation of loading effect
this.isLoading = true // causes "scroll to top" side effect which is reported as a bug
setTimeout(() => { // https://github.com/FreeTubeApp/FreeTube/issues/1507
this.isLoading = false //
}, 100) // activeData() {
} // this.isLoading = true
// setTimeout(() => {
// this.isLoading = false
// }, 100)
// }
}, },
mounted: function () { mounted: function () {
const limit = sessionStorage.getItem('favoritesLimit') const limit = sessionStorage.getItem('favoritesLimit')