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

Commit ede9ea4

Browse files
mseancolewesleycho
authored andcommitted
fix(collapse): fix occasional flickering
- Fixes occasional flickering that can happen Closes #3804 Fixes #3801
1 parent fb302c6 commit ede9ea4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/collapse/collapse.js

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ angular.module('ui.bootstrap.collapse', [])
1717
}
1818

1919
function collapse() {
20+
if(! element.hasClass('collapse') && ! element.hasClass('in')) {
21+
return collapseDone();
22+
}
23+
2024
element
2125
// IMPORTANT: The height must be set before adding "collapsing" class.
2226
// Otherwise, the browser attempts to animate from height 0 (in

0 commit comments

Comments
 (0)