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

If props pass a new items array the wall falls with item not found #16

Open
moetun88 opened this issue Aug 8, 2020 · 1 comment
Open

Comments

@moetun88
Copy link
Contributor

moetun88 commented Aug 8, 2020

If a parent element passes in an entirely new array (props) the masonry wall does not redraw

In an implementation which isn't auto loading via append simply watching for items and redrawing is a workaround.
watch: {
items(){
this.redraw()
}
},

Perhaps an additional flag to indicate between the two types of updates items can experience?

@forrust
Copy link

forrust commented Dec 17, 2020

Yes i'm experiencing the same issue, as soon as my (store) items array changes the masonry wall collapse in to an error. Does looks very promising tho!

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