React-slick: oldIndex parameter is always undefined in beforeChange function

Created on 9 May 2018  路  11Comments  路  Source: akiran/react-slick

version:
0.23.1

description:
the parameter oldIndex in function beforeChange(oldIndex, newIndex) is always undefined

example : https://codesandbox.io/s/x7x1jp6pnp

What is expected?
oldIndex should be equal to the current slide number

What is actually happening?
oldIndex is always undefined

Most helpful comment

Anything on this issue? Even I'm facing this issue

All 11 comments

Anything on this issue? Even I'm facing this issue

Same issue...

same issue

I think this is a issue that need urgent treatment.

It's already fixed here!

This commit was not merged and published.

Same issue here!

I am also having this issue. Please merge commit #1272!

Same issue here. Please merge the commit.

Same issue here

Same issue here

Was this page helpful?
0 / 5 - 0 ratings

Related issues

slashwhatever picture slashwhatever  路  3Comments

amishPro picture amishPro  路  3Comments

darkalor picture darkalor  路  4Comments

laveesingh picture laveesingh  路  3Comments

Exomnius picture Exomnius  路  3Comments