Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: height style issue #107

Merged
merged 3 commits into from
Sep 14, 2023
Merged

Conversation

ohhoney1
Copy link

fix the style issue when the number of slides is less than or equal to slidesToShow.

ant-design/ant-design#44766

src/inner-slider.js Outdated Show resolved Hide resolved
@@ -135,7 +135,7 @@ const renderSlides = (spec) => {
);

// if slide needs to be precloned or postcloned
if (spec.infinite && spec.fade === false) {
if (spec.infinite && spec.fade === false && !spec.unslick) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VerticalMode.js 例子中,Slider 子元素数量改为 1 ,由于设置了infinite: true,导致出现了克隆元素

@afc163
Copy link
Member

afc163 commented Sep 13, 2023

能补一下用例不

@ohhoney1
Copy link
Author

能补一下用例不

done.

@afc163 afc163 merged commit 57a9116 into ant-design:master Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants