metafizzy / isotope

:revolving_hearts: Filter & sort magical layouts
https://isotope.metafizzy.co
11.05k stars 1.41k forks source link

Filtering not working when adding divs dynamically #1621

Open egdedudette opened 2 years ago

egdedudette commented 2 years ago

1- Adding div dynamically 2- inject data including classes from json file 3- filtering does not work.

Seems like the $grid object does not see the classes tho they exist.

Using jquery.

thesublimeobject commented 2 years ago

@egdedudette —

Please, per the contributing guidelines, provide a working example via CodePen, or at least something else that I can visibly see the issues and the code that you have tried and isn't working. Without more detail, there isn't much I can do to help for the time being. Thank you!