We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff1f108 + 5c1c406 commit fab18e9Copy full SHA for fab18e9
src/react-elastic-carousel/components/Carousel.js
@@ -46,15 +46,16 @@ class Carousel extends React.Component {
46
itemsToScroll,
47
breakPoints
48
} = this.props;
49
- const { firstItem } = this.state;
+ const { firstItem, sliderContainerWidth } = this.state;
50
const nextItem = this.getNextItemIndex(firstItem, false);
51
52
// update pages (for pagination)
53
if (
54
prevProps.children !== children ||
55
prevProps.itemsToShow !== itemsToShow ||
56
prevProps.itemsToScroll !== itemsToScroll ||
57
- prevProps.breakPoints !== breakPoints
+ prevProps.breakPoints !== breakPoints ||
58
+ sliderContainerWidth !== prevState.sliderContainerWidth
59
) {
60
this.setPages();
61
}
0 commit comments