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

infinite add classname 'item' on child elements #54

Open
Valianton opened this issue Jun 29, 2018 · 1 comment
Open

infinite add classname 'item' on child elements #54

Valianton opened this issue Jun 29, 2018 · 1 comment

Comments

@Valianton
Copy link

hi, my code is:

<isotope
	:options="{}"
	:list="[]"
	class="row"
>
	<some-item
		v-for="item in items"
		:key="item.key"
		class="col"
	/>
</isotope>

const items = [{}, {}, {}, {},];

on some setInterval (1000s) I add one object to items. After that to all append className 'item'.
And in the end it may be happen that

I found that
rawChildren.forEach(elt => addClass(elt, this.itemSelector))

And every time on scroll, the same thing happens. The item class is constantly put down to all elements of the list.

@David-Desmaisons
Copy link
Owner

I can not understand your descriprion of the problem.
The lis props should be set to items in your example.

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

2 participants