Skip to content

Commit

Permalink
- update for possibility to have not selected carousel thumbnail (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
freewayspb authored Sep 24, 2020
1 parent 13281cc commit a5595e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/carousel/CarouselThumbnails.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function CarouselThumbnails({
return (
<div className={clsx(className, styles.thumbs)}>
<Tabs
value={mod(selected, count)}
value={selected ? mod(selected, count) : false}
variant="scrollable"
onChange={(_, index) => setSelected(index)}
orientation={isVertical ? 'vertical' : 'horizontal'}
Expand Down

0 comments on commit a5595e6

Please sign in to comment.