Splidejs / splide

Splide is a lightweight, flexible and accessible slider/carousel written in TypeScript. No dependencies, no Lighthouse errors.
https://splidejs.com
MIT License
4.89k stars 424 forks source link

If there is a change in the array length of the carousel graph, rendering will result in an error #1153

Open Sunny264 opened 1 year ago

Sunny264 commented 1 year ago

Checks

Version

4.1.4

Description

If my carousel data length is 5 and the dynamic changes afterwards become 0, even if I use refresh(), the carousel will not be re rendered. I feel that this is a bug.

Reproduction Link

No response

Steps to Reproduce

First render 5 slider items, then dynamically increment or decrement them

Expected Behaviour

When the number of slide items changes, calling refresh will re render correctly