M
M
maryna04082019-09-02 14:15:22
JavaScript
maryna0408, 2019-09-02 14:15:22

How to initialize slick in modal window?

I have a small product catalog - talog.supergift.top
When you click on the first card (image or button), a modal window opens with a vertical slick slider. But it does not work, as I understand it, the problem is in the initialization of the slider itself, how can this be fixed?
Here is the JS code:

methods: {
      selectProduct: function (product) {
              this.selectedProduct = product;
              // слайдер для продукции
        $(".product-slider").slick({
            slidesToShow: 1,
              slidesToScroll: 1,
              fade: true,
              arrows: false,
              asNavFor: ".product-slider-nav"
        });
        $(".product-slider-nav").slick({
            vertical: true,
              slidesToShow: 4,
              slidesToScroll: 1,
              arrows: false,
              asNavFor: ".product-slider",
              focusOnSelect: true
        });
          }
    }

it's on vue

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mitya ToDaSyo, 2019-09-02
@dimastik1986

window.addEventListener("click", function(event) {
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question