bxslider-4 icon indicating copy to clipboard operation
bxslider-4 copied to clipboard

Cloned elements don't respond on click event Angular 6

Open Vieshanis opened this issue 6 years ago • 0 comments

I am using BxSlider in Angular 6 project. Elements are generated with *ngFor and bxSlider is added to element after view has initlaized

  ngAfterViewInit() {
    // Slider has to be initialized only after component's view has been initialized
    qElem('[data-call="bxslider"]').each(function () {
      qElem(this).bxSlider();
    });
  }

on slider, the "original" position elements are clickable, but when I start scrolling the slider, new elements are not responding to click. They become responsive when slider takes original position. I tried adding true to all .clone() function in bxSlider JS but no results

Vieshanis avatar Oct 03 '18 06:10 Vieshanis