Open Blazsoul opened 2 years ago
I like it, @Blazsoul. After if (!doesMatchAllElements) {}
, should there be something like this, to clear containers that no longer match?
if (!doesMatchAllElements) { /* ... */ } else {
for (const element of elements) {
layoutContainerSet.delete(element)
}
}
I've just hit this issue too and this PR fixes my issue also
@jonathantneal I tried to add this piece of code but then it's just blows up all of the responsiveness functionality
any update ? @jonathantneal
From what i have noticed the layoutContainerSet variable is being cleared on each mutation and therefore it has only one container element, I just removed the clear command so it will add all the containers to the set, It seems to function properly with multiple containers on the same page now.
What do you think ?