Skip to content

Commit b3697f1

Browse files
committed
fix(core): autoHeight shouldn't ignore zero height slides
fixes #5281
1 parent 3d377c2 commit b3697f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/update/updateAutoHeight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ export default function updateAutoHeight(speed) {
4444
}
4545

4646
// Update Height
47-
if (newHeight) swiper.$wrapperEl.css('height', `${newHeight}px`);
47+
if (newHeight || newHeight === 0) swiper.$wrapperEl.css('height', `${newHeight}px`);
4848
}

0 commit comments

Comments
 (0)