Skip to content

Added IE11 and IE10 support, and modify the dots mode naming.

Compare
Choose a tag to compare
@YIZHUANG YIZHUANG released this 05 Apr 08:07
· 436 commits to master since this release
993b5c4

In previously version if you are using the custom dots mode, you would have to do the following to know if a dot is active or not.

if(slideIndex === currentSlide)

Now you can just do

const CustomDot = ({ active }) => {
   return <li className={active? 'active' : 'not-active'}><button>I am a dot</button></li>
}