Skip to content

Commit

Permalink
Merge pull request #1084 from searchspring/carousel-bugfix
Browse files Browse the repository at this point in the history
call updateSlideClasses onResize to update disabled classnames
  • Loading branch information
korgon authored Jun 26, 2024
2 parents 14c0aba + 8f80ea2 commit 628e285
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,11 @@ export const Carousel = observer((properties: CarouselProps): JSX.Element => {
{...displaySettings}
navigation={navigation}
pagination={pagination}
onResize={() => {
onResize={(swiper) => {
if (additionalProps.onResize) {
additionalProps.onResize();
}
swiper.updateSlidesClasses();
attachClasstoLastVisibleSlide();
}}
onTransitionEnd={() => {
Expand Down

0 comments on commit 628e285

Please sign in to comment.