Skip to content

Commit

Permalink
Revert "change invalid activeIndex when the number of items in the ga…
Browse files Browse the repository at this point in the history
…llery is…" (#1266)

This reverts commit 900e047.
  • Loading branch information
noam-heller1 authored Jul 31, 2024
1 parent e1db85f commit 69643f3
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1168,18 +1168,6 @@ class SlideshowView extends React.Component {
this.startAutoSlideshowIfNeeded(props.options);
});
}
if (this.state.activeIndex > props.items.length - 1) {
utils.setStateAndLog(
this,
'Next Item',
{
activeIndex: 0,
},
() => {
this.onCurrentItemChanged();
}
);
}
if (this.props.activeIndex !== props.activeIndex) {
utils.setStateAndLog(
this,
Expand Down

0 comments on commit 69643f3

Please sign in to comment.