vue2-scrollspy icon indicating copy to clipboard operation
vue2-scrollspy copied to clipboard

Scroll detection stop after page reload

Open Sceat opened this issue 5 years ago • 0 comments

Vue version: 2.6.8

vue2-scrollspy version: 2.3.1

Expected behavior:

Should add the active class properly

Actual behavior:

Work properly after a vue dev server hot-reload but stop adding the active class after a browser page reload

Demo link:

ul.tabs(v-scroll-spy-active v-scroll-spy-link="{selector: 'li'}")
			li.tab(v-for="c in myarray" :key="c") {{c}}
.food(v-scroll-spy)
	custom-component(v-for="c in myarray" :key="c")

Workaround

.food(v-scroll-spy)
	.useless-div(v-for="c in myarray" :key="c")	
		custom-component

Sceat avatar Mar 05 '19 08:03 Sceat