Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Bootstrap3 collapse consecutive transition fix and tidy up #1293

Conversation

chrisirhc
Copy link
Contributor

Found a bug that allowed consecutive transitions. If you click three times quickly, it would break this Bootstrap 3 version. This should be backported to the current collapse though it isn't causing any visible issues.

This is partially because there's a bug in $transition (due to jqLite) that wouldn't correctly call all the transition end listeners due to angular/angular.js#5109 , when not using jQuery. Yes, it was two bugs in separate places that was making it difficult to solve this one.

Previously, there would be a case where the two transitions would run
as the cancel would asynchronously invoke the reject handler of the
transition which would set the currTransition to undefined even when
the currTransition has been replaced with a new transition.
@pkozlowski-opensource
Copy link
Member

Awesome @chrisirhc! I was aware of this issue but couldn't pin-point it... Merging this now.

pkozlowski-opensource added a commit that referenced this pull request Nov 25, 2013
Bootstrap3 collapse consecutive transition fix and tidy up
@pkozlowski-opensource pkozlowski-opensource merged commit 50c48f8 into angular-ui:bootstrap3_collapse Nov 25, 2013
@chrisirhc chrisirhc deleted the bootstrap3_collapse-fixes branch December 2, 2013 19:59
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 this pull request may close these issues.

2 participants