diff --git a/lib/app/components/nuxt-child.js b/lib/app/components/nuxt-child.js index 6276c66d85..b22084596a 100644 --- a/lib/app/components/nuxt-child.js +++ b/lib/app/components/nuxt-child.js @@ -32,7 +32,10 @@ export default { // Add triggerScroll event on beforeEnter (fix #1376) let beforeEnter = listeners.beforeEnter listeners.beforeEnter = (el) => { - window.$nuxt.$emit('triggerScroll') + // Ensure to trigger scroll event after calling scrollBehavior + window.$nuxt.$nextTick(() => { + window.$nuxt.$emit('triggerScroll') + }) if (beforeEnter) return beforeEnter.call(_parent, el) }