phucbm/flickity-responsive

Default Flickity option turning on when we manually "resize"

scheylon opened this issue · 1 comments

I have a button on my website which trigger the height of the carrousel, and for it to work properly, it refresh the carrousel through "resize"
but sadly, when it force refresh, the default Flickity option are back (arrow, pagedot, draggable).

var $carousel = $('.carousel').flickity();

$('.button').on('click', function () {
    $carousel.toggleClass('is-expanded')
    setTimeout(function () {
        $carousel.flickityResponsive('resize');
    }, 600);
    $('.caption').toggleClass('hidden');
});

Hi @scheylon,
Could you reproduce the issue in a CodePen, please?