From 1ced4f725f66572505aeda34fe2e4c3e0cef05bf Mon Sep 17 00:00:00 2001
From: Vladimir Kharlampidi
Date: Wed, 16 Jun 2021 16:21:30 +0300
Subject: [PATCH] fix(core): unset top margin on slide when `slidesPerColum`
changed
fixes #4658
---
src/components/core/update/updateSlides.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/core/update/updateSlides.js b/src/components/core/update/updateSlides.js
index fa040e4c6..f2d57991a 100644
--- a/src/components/core/update/updateSlides.js
+++ b/src/components/core/update/updateSlides.js
@@ -135,7 +135,7 @@ export default function updateSlides() {
}
slide.css(
getDirectionLabel('margin-top'),
- row !== 0 && params.spaceBetween && `${params.spaceBetween}px`,
+ row !== 0 ? params.spaceBetween && `${params.spaceBetween}px` : '',
);
}
if (slide.css('display') === 'none') continue; // eslint-disable-line