Closed gregg-cbs closed 1 year ago
When destroying flickity it then removes all the cell class names. So when trying to reinit it, flickity does not work.
Here is the repoduction: https://codesandbox.io/s/flickity-destroy-and-init-edkcew?file=/index.html
Thanks for this. flickity-cell is added and removed by Flickity. You should not flickity-cell to your own markup. So, I recommend you use a different selector like carousel-cell.
flickity-cell
carousel-cell
When destroying flickity it then removes all the cell class names. So when trying to reinit it, flickity does not work.
Here is the repoduction: https://codesandbox.io/s/flickity-destroy-and-init-edkcew?file=/index.html