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

not changing the classes #18

Open
gfrancis86 opened this issue Jun 14, 2022 · 0 comments
Open

not changing the classes #18

gfrancis86 opened this issue Jun 14, 2022 · 0 comments

Comments

@gfrancis86
Copy link

gfrancis86 commented Jun 14, 2022

I don't know what I'm doing wrong but the plugin will not change the class names from no-active to active even though I'm scrolling

<div v-for="item in localSessions" :key="item._id" :id="item._id" v-scroll-show="{parentId: 'listData'}" >.. </div>

This is the code, when it loads, the first items have the class active, and bottom items have no-active
but as I scroll, the items remain no-active
?? what am I doing wrong??
I also notice the elements that have the active class are not really the ones that are visible in the container, I think it adds the active class to the items that would be visible in the viewport not the parent container

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

No branches or pull requests

1 participant