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
[Vue Router warn]: Couldn't find element using selector "#Section2" returned by scrollBehavior. #4571
Comments
Hi, i am sorry but on the first display nothing happen, it makes the callback only when clicking on arrow, but how for the first call ? the first display of first slide ? |
i have a simple case, i dont want to display any arrows on the first left slide, only on the following, only when we are in next slide, have the "back" arrow slide. |
The first slide won't trigger You can see this on the example online: |
So in my updated example 2 errors 1 on the afterLoad method it log twice the anchor section1 event if we are in section2 2 onafterlideLoad i am always on right direction : |
See the docs regarding the afterLoad callback. Your parameters are in the wrong order. They should be: afterLoad: function(origin, destination, direction, trigger){},
I'm not able to reproduce the issue. |
Description
on nuxtjs when we scroll section to another section we have this warning what i think cause some method to neot be executed as afterSlideLoad, but when we put directly anchor in url the method is executed
Link to isolated reproduction with no external CSS / JS
Link to reproduce
Steps to reproduce it
1 open console debugger
2 scroll fron first section to another
3 check console log
Versions
any version of nuxt3
the issue is as i want to execute some code on afterSlideLoad, it is not working
see this question : stack overflow
The text was updated successfully, but these errors were encountered: