[vue-scrollto warn]: Trying to scroll to an element that is not on the page
See original GitHub issueWhen using the module I get a warning (and no scrolling): [vue-scrollto warn]: Trying to scroll to an element that is not on the page: #e6e3ac7024ecfa178be642e249b42527
The id is present on the page (generated in the template in a child component from the component where the scrollto is called from).
This is the code used to call the scrollto:
VueScrollTo.scrollTo('#' + this.exercise.id, 200, { container: 'body' });
What could be the problem?
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Vue.js - Scroll to element not working on - Stack Overflow
I have the following v-for and when i add a new comment I want to scroll to that comment but ...
Read more >Examples - vue-scrollto
Adds a directive that listens for click events and scrolls to elements.
Read more >Vue.js directive that can scroll to elements on the page.
vue-scrollto. A Vue.js directive that can scroll to elements on the page. Since v2.1.0 it doesn't require jQuery anymore, instead it uses window....
Read more >Vue.js Scroll to element in div using vue-scrollto - Morioh
In this article, I want to share with you scroll to a specific reference id or element using vue-scrollto component in vue.js. I...
Read more >Scroll down in vue in specific element - Laracasts
I am trying to scroll down on new appeared element in vue: I have chat ... I am not sure how to scroll...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Prepending ‘ex-’ to Ids makes it to work. Looks weird with Id name.
@rigor789 Yes, a quick bit of googling confirmed this. I’m still seeing some weirdness with this, even when prepending with letters. If I can’t get past it, I will open a new issue.