-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
moveToIdx does not work in certain conditions #415
Comments
Sorry for the view of code. No idea why part of that is not marked as code |
Multiline code should be wrapped in tripple backticks: You can go back and edit your comment, so i'll become readable, because in its current state it's kind of hard to comprehend. |
Thank you for answer. Corrected it |
Hello! I have component of match where users can change scores of their games. Keen-slider works good! But i have one issue.
When i add new set of match or remove one of existing sliders has to move to indexes of last set. But it does not happen.
Func of moving slides:
func where i add new set:
instances of sliders are same, for first one:
elements:
Also i noticed that if i remove line
setMatchState(prev => { return { ...prev, sets } })
, sliders move fine. Or i have wrap in setTimeouts moveToIdx funcs in changeSlidesInSlider.How can i fix it?
The text was updated successfully, but these errors were encountered: