Open theexplay opened 5 years ago
any news?
Same issue for me.
Seems like it's caused by the "load" event handlers for lazy-loaded images set in checkImagesLoad. The handlers call onWindowResized which in turn clears timeout handle this.animationEndCallback which is responsible for triggering afterChange.
Also see https://github.com/akiran/react-slick/issues/1262 and its associated PR.
CodeSandBox: https://codesandbox.io/s/react-typescript-sq6ih
When i'm using lazyLoading option with 'ondemand' value, afterChange function doesn't fire. It's easy to reproduce by fast clicking on the "next arrow". But if all images already loaded bug will not reproduce (for example if u will press prev arrow).
Steps to reproduce:
Even if u already scrolled to last slide, afterChange could still doesn't fire, looks like a bug..
p.s. sry for my eng.