kidjp85 / react-id-swiper

A library to use idangerous Swiper as a ReactJs component which allows Swiper's modules custom build
https://react-id-swiper.ashernguyen.site/
MIT License
1.49k stars 154 forks source link

prev and back buttons not changing the slide #35

Closed simran-k closed 7 years ago

simran-k commented 7 years ago

Slides change on autoplay and with pagination click but forward and back button do not work at all.

 <div id="homePageSlider">
                          <Swiper>
                                 <img alt="sweats-cards" classname="lazyload banner_main" name="sweats-cards-9-12-16" src=xyz.jpg" />
                          </Swiper>
                        </div>
                      </div>

I have tried passing this const params = { pagination: '.swiper-pagination', nextButton: '.swiper-button-next', prevButton: '.swiper-button-prev', paginationClickable: true, spaceBetween: 30, centeredSlides: true };

as well but no luck

kidjp85 commented 7 years ago

Hi @simran-k , thank you for your report. I checked your example code , do you have only one item in your slider ?