app/javascript/js/controllers/sidebar_controller.js in avo-3.13.5 vs app/javascript/js/controllers/sidebar_controller.js in avo-3.13.6
- old
+ new
@@ -67,11 +67,11 @@
rememberScrollPosition() {
let handler
document.addEventListener('turbo:visit', handler = () => {
- // Remeber sidebar scroll position before changing pages.
+ // Remember sidebar scroll position before changing pages.
this.sidebarScrollPosition = document.querySelector('.avo-sidebar .mac-styled-scrollbar').scrollTop
// remove event handler after disconnection
document.removeEventListener('turbo:visit', handler)
})
}
@@ -97,10 +97,10 @@
this.mobileSidebarTarget.classList.remove('hidden')
// we force a reflow here because we remove then
// immediately add the sidebar-open class
// which doesn't give the browser enough time to apply the
- // transistion.
+ // transition.
this.mainAreaTarget.offsetHeight;
}
this.mainAreaTarget.classList.toggle('sidebar-open')
}