ant-design/ant-design

Carousel component is buggy when using ondemand lazyload option

Open

#50,491 建立於 2024年8月19日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)TypeScript (98,031 star) (54,612 fork)batch import
Inactivehelp wanted🚌 External Dependency🧶 Low Priority

描述

Reproduction link

Edit on StackBlitz

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

貢獻者指南