Made it possible to add non-grid items under the isotope element. #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a change in
src/vue_isotope.js
that makes it possible to add non-grid items under the isotope element. For example:Now isotope doesn't forcibly add the item-selector class to the gutter-sizer div, if the
:key="'$ignore'"
.Before this change, I would either have to add a
:key
to the gutter-sizer div, which would force the item-selector class, or leave it without a:key
, which would lead to the error: Warning template error: isotope children must be keyed. Please rebuilddist/*
as you see fit.I was also working on a more complex fix for this, but this took only into account masonry's gutter and columnWidth, but it might be useful for you later on so check it out:
zArubaru@5fcbbca#diff-c0f7674dbe53fdbdfb7d9ff2640ec489
... which made the syntax like this: