ant-design/ant-design
在 GitHub 查看Carousel component is buggy when using ondemand lazyload option
Open
#50,491 建立於 2024年8月19日
Inactivehelp wanted🚌 External Dependency🧶 Low Priority
描述
Reproduction link
Steps to reproduce
When putting lazyload='ondemand'to Carousel option, the dot selection will not behave correctly
What is expected?
Clicking on the 2nd dot should show the second element, not the first
What is actually happening?
The Carousel, when clicking on the second dot with lazyLoad=ondemand, will display the 1st element
| Environment | Info |
|---|---|
| antd | 5.20.1 |
| React | latest |
| System | Macos - latest |
| Browser | Chrome - latest |