scrollToTop or saveBehavior not work when use 100vh height=100% in layout
[issue link]my layout
default.vue
<template lang="pug">
div
topbar
headbar
channel-nav
.container.nuxt-page-wrapper
nuxt
footbar
</template>
and
layout.styl
.nuxt-page-wrapper
min-height 100vh
I use scrollToTop in page it’s not work
export default {
scrollToTop: true,
mounted () {
window.scrollTo(0, 0)
}
}
and my nuxt.config.js also not work
module.exports = {
...
router: {
scrollBehavior: function (to, from, savedPosition) {
return false
}
},
...
}
what’s going on?