Fixed global state and scrolltotop

This commit is contained in:
Joel Collins 2020-11-22 17:01:46 +00:00
parent a1ae94792e
commit ef9f257e23
13 changed files with 34 additions and 50 deletions

View file

@ -111,7 +111,10 @@ export default {
methods: {
scrollToTop() {
document.querySelector("#container-left").scrollTop = 0;
const el = document.querySelector("#container-left");
if (el) {
el.scrollTop = 0;
}
},
visibilityChanged(isVisible) {
if (isVisible) {