Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Switching the selected index while the previous transition is still in progress is broken #55

Open
khorimoto-zz opened this issue Mar 11, 2015 · 0 comments · May be fixed by #58
Open

Comments

@khorimoto-zz
Copy link

  1. Use a CSS-based transition with a sufficiently long transition time, say 1 second.
  2. Change the selected index, and the animation starts.
  3. Within the 1 second of the transition, change the selected index back to the original index.

Expected: The previous transition force-finishes early, and the new one starts.
Actual: The first transition does not finish early, and the new property gets applied in such a way that it does not cause a transition at all. The transitionend event is not fired, so the transition does not finish until the 5-second timeout.

Note that if this is the intended behavior, then we should expose complete() as a public function so that clients can force-complete the previous animation if necessary.

@vshab vshab linked a pull request Mar 30, 2015 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant