Skip to content

Commit

Permalink
fix(core): fix autoHeight in virtual slides
Browse files Browse the repository at this point in the history
fixes #6570
  • Loading branch information
nolimits4web committed Apr 21, 2023
1 parent 3eb0ae2 commit dd30829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/update/updateAutoHeight.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};
Expand Down

0 comments on commit dd30829

Please sign in to comment.