! 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: {
activeData() {
this.isLoading = true
setTimeout(() => {
this.isLoading = false
}, 100)
}
// This implementation of loading effect
// causes "scroll to top" side effect which is reported as a bug
// https://github.com/FreeTubeApp/FreeTube/issues/1507
//
// activeData() {
// this.isLoading = true
// setTimeout(() => {
// this.isLoading = false
// }, 100)
// }
},
mounted: function () {
const limit = sessionStorage.getItem('favoritesLimit')