Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu and v-scroll-spy html element order. #13

Open
exnihilo-creatio opened this issue Jan 31, 2018 · 3 comments
Open

Menu and v-scroll-spy html element order. #13

exnihilo-creatio opened this issue Jan 31, 2018 · 3 comments

Comments

@exnihilo-creatio
Copy link

exnihilo-creatio commented Jan 31, 2018

It should be noted in the README.md that the menu html element should come before the v-scroll-spy otherwise you'll get error messages. This breaks when updating from a version before the introduction of v-scroll-{spy, active, link}.

Maybe make the v-scroll-spy not dependent on the order.

@ibufu
Copy link
Owner

ibufu commented Feb 1, 2018

welcome pr.

@gshishkov
Copy link

I faced same problem. I have menu items that have to appear over the scrolled content. I don't want to use z-indexing and can't use position: absolute So I decided to use bootstrap classes "d-flex flex-column-reverse" I and then to swap the menu and the content that bring error "Error in directive scroll-spy inserted hook: "TypeError: Cannot read property '0' of undefined". Is there any solution for that?

@gshishkov
Copy link

I manage to avoid this bug by adding one empty div before the section and navigation part like this:
<div v-scroll-spy-active></div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants