afterChange doesn't fire with lazyLoading: 'ondemand'
- Vorherrschende Sprache
- JavaScript
- Sterne
- 11.9k
- Forks
- 2.1k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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:
1. After render page, just press on next arrow fast
2. You will see, that _beforeChange_ fires every time, but _afterChange_ sometimes doesn't fire
3. Watch on the console
Even if u already scrolled to last slide, _afterChange_ could still doesn't fire, looks like a bug..

p.s. sry for my eng.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.