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

Commit

Permalink
fix(collapse): fix occasional flickering
Browse files Browse the repository at this point in the history
- Fixes occasional flickering that can happen

Closes #3804
Fixes #3801
  • Loading branch information
mseancole authored and wesleycho committed Jul 17, 2015
1 parent fb302c6 commit ede9ea4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/collapse/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ angular.module('ui.bootstrap.collapse', [])
}

function collapse() {
if(! element.hasClass('collapse') && ! element.hasClass('in')) {
return collapseDone();
}

element
// IMPORTANT: The height must be set before adding "collapsing" class.
// Otherwise, the browser attempts to animate from height 0 (in
Expand Down

0 comments on commit ede9ea4

Please sign in to comment.