Skip to content

Commit

Permalink
fix(preact-components-carousel): bugfix for backwards compatible clas…
Browse files Browse the repository at this point in the history
…snames on carousel re-renders
  • Loading branch information
chrisFrazier77 committed Apr 22, 2024
1 parent 3712e44 commit 0fbbf29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export const Carousel = observer((properties: CarouselProps): JSX.Element => {

//add usable class to last visible slide.
attachClasstoLastVisibleSlide();
}, []);
}, [properties]);

if (pagination) {
if (typeof pagination == 'object') {
Expand Down

0 comments on commit 0fbbf29

Please sign in to comment.