File tree Expand file tree Collapse file tree
packages/snap-preact/components/src/components/Molecules/Carousel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -205,14 +205,13 @@ export const Carousel = observer((properties: CarouselProps) => {
205205 ? JSON . parse ( JSON . stringify ( defaultVerticalCarouselBreakpoints ) )
206206 : JSON . parse ( JSON . stringify ( defaultCarouselBreakpoints ) ) ,
207207 pagination : false ,
208- slidesPerGroup : 5 ,
209- slidesPerView : 5 ,
208+ slidesPerGroup : ! properties . breakpoints || ! Object . keys ( properties . breakpoints ) . length ? 5 : undefined ,
209+ slidesPerView : ! properties . breakpoints || ! Object . keys ( properties . breakpoints ) . length ? 5 : undefined ,
210210 spaceBetween : 10 ,
211211 loop : true ,
212212 autoAdjustSlides : false ,
213213 treePath : globalTreePath ,
214214 } ;
215-
216215 let props = mergeProps ( 'carousel' , globalTheme , defaultProps , properties ) ;
217216 let displaySettings ;
218217
You can’t perform that action at this time.
0 commit comments