-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
scrollTo
does not seem to work properly in versions after 1.1.9
#381
Comments
scrollTo
doesnot seem to work properly in versions after 1.1.9
scrollTo
does not seem to work properly in versions after 1.1.9
going to take a look now |
Thanks, let me know If you need some more info. |
can't reproduce internally. from 1.1.9 to 1.1.10 there where internal changes but no changes to the external api. some private properties moved to the # private js class property declaration and it looks like some proxy is trying to access this here. cant reproduce in the repo. could you please provide a stackblitz link with your nuxt, pinia setup? |
Yes, I will try to put something together ASAP |
was able to reproduce just now. looks like pinia creates proxies around its content. this will break private property access. while digging into this issue I found this discussion: tc39/proposal-class-fields#106. look like vues reactivity setup through proxies will have problems with private properties. we will discuss this internally, but will probably revert. |
just pushed the changes. will publish soon, after that all should be good on the vue side again. keeping this here as a reference vuejs/core#8149 (comment). |
Thank you, I can confirm that now with version |
perfect |
I had a setup including Lenis in a Nuxt project, where I had configured something similar to this:
When using Lenis
1.1.9
or older,scrollTo
works as expected and nothing is loggedIf I update Lenis to
1.1.10
or newer versions,scrollTo
is no longer working (so clicking on the button does not bring me to the desired element on the page) and some error is logged;I tried even some different setup, like this:
But the problem persists.
Apparently, something was changed between versions
1.1.9
and1.1.10
, but I cannot find anything in the docs (and in the semver version too), that suggests that the API received some breaking changes.Am I doing something wrong or I stumbled into a bug?
The text was updated successfully, but these errors were encountered: