vuejs2 - How To Trigger Scrolling Techniques to Bring Back the Toolbar when using Vuetify -
i'm using vuetify's toolbar scrolling techniques feature on spa needs scroll top of container between each page transition. when trigger via javascript using scrolltop, scroll works fine, doesn't seem let vuetify know scroll has occurred , result primary toolbar missing. if particular page isn't long enough require scroll, becomes impossible regain primary toolbar.
any suggestions on how can scroll user top of container javascript and have vuetify move primary toolbar place appreciated.
<v-toolbar :scroll-off-screen="true" :scroll-target="'#scrolling-techniques'">
https://codepen.io/developerplus/pen/mbbjbq
i've attached codepen link demonstrating issue. once scrolled down bottom of container, if "scroll top" button clicked, i'd expect both take me top of container, , reveal primary menu.
i found solution question. if refer codepen in question, you'll notice example working. required following:
let event = new customevent('scroll') container.pageyoffset = 0 settimeout(() => { container.scrolltop = 0 }) container.dispatchevent(event)
Comments
Post a Comment