Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/Carousel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export class Carousel extends React.PureComponent {

componentWillReceiveProps(nextProps) {

// when data changes, children should be re-generated
if(nextProps.data !== this.props.data) {
// when data or children changes, children should be re-generated
if(nextProps.data !== this.props.data || nextProps.children !== this.props.children) {
this.setState({children: Helper.makeChildren(nextProps)});
}

Expand Down