vue-scrollactive
vue-scrollactive copied to clipboard
Error: vue scroll-active "#anchor" Element was not found. Make sure it is set in the DOM.
I'm having this issue and I'm not able to make vue-scrollactive to work here on my project. After some research I read that, somehow, the component is "acting" before the DOM is loaded, so, that's why it can't find the element with the anchor id.
If someone have a solution for this, please help me! Thank you all!
When you click a scrollactive item it will always query the DOM for the element in the anchor hash, so it doesn't matter if the component is initialized before or after that element is loaded, but when you click the anchor the element must be in the DOM.
Maybe you're rendering the section when clicking the item? That won't work properly and you'll have to find a way around that like delaying the click event so that the section can be loaded.
Let me know if you found a solution or give me more details so we can figure it out.