Skip to content

v1.7.10

Latest

Choose a tag to compare

@NickPiscitelli NickPiscitelli released this 16 Apr 20:28
· 3 commits to master since this release

Bug Fixes

  • Fix infinite loop in buildDots when slidesToShow resolves to 0 (#274).

    When slidesToShow: 'auto' is combined with exactWidth: true and the glider initializes inside a hidden container (e.g. a closed drawer or tab), clientWidth is 0, which caused slidesToShow to be computed as 0. buildDots then evaluated Math.ceil(N / 0) = Infinity, locking the page. buildDots now bails out and clears any existing dots when slidesToShow is falsy. On subsequent refresh (once the container has a real width) dots are rebuilt normally.