From dd308291a46db86bf7b88416587d2d8a1cdcabd5 Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Fri, 21 Apr 2023 17:26:43 +0300 Subject: [PATCH] fix(core): fix autoHeight in virtual slides fixes #6570 --- src/core/update/updateAutoHeight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/update/updateAutoHeight.js b/src/core/update/updateAutoHeight.js index 6c10d2372..80a4c700f 100644 --- a/src/core/update/updateAutoHeight.js +++ b/src/core/update/updateAutoHeight.js @@ -12,7 +12,7 @@ export default function updateAutoHeight(speed) { const getSlideByIndex = (index) => { if (isVirtual) { - return swiper.getSlideIndexByData(index); + return swiper.slides[swiper.getSlideIndexByData(index)]; } return swiper.slides[index]; };