Skip to content

Commit a5595e6

Browse files
authored
- update for possibility to have not selected carousel thumbnail (#139)
1 parent 13281cc commit a5595e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/carousel/CarouselThumbnails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function CarouselThumbnails({
139139
return (
140140
<div className={clsx(className, styles.thumbs)}>
141141
<Tabs
142-
value={mod(selected, count)}
142+
value={selected ? mod(selected, count) : false}
143143
variant="scrollable"
144144
onChange={(_, index) => setSelected(index)}
145145
orientation={isVertical ? 'vertical' : 'horizontal'}

0 commit comments

Comments
 (0)