Skip to content

Commit

Permalink
Add index in renderCard
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier-villelegier authored May 25, 2018
1 parent 62fe509 commit f26f469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ class Swiper extends Component {
pushCardToStack (renderedCards, index, key, firstCard) {
const { cards } = this.props
const stackCardZoomStyle = this.calculateStackCardZoomStyle(index)
const stackCard = this.props.renderCard(cards[index])
const stackCard = this.props.renderCard(cards[index], index)
const swipableCardStyle = this.calculateSwipableCardStyle()
const renderOverlayLabel = this.renderOverlayLabel()

Expand Down

0 comments on commit f26f469

Please sign in to comment.