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

Commit df1d104

Browse files
Merge pull request #1272 from phindmarsh/bootstrap3_collapse
fix(collapse): flag initial animation complete when collapsing
2 parents 6c818c9 + d98faec commit df1d104

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/collapse/collapse.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ angular.module('ui.bootstrap.collapse', ['ui.bootstrap.transition'])
3838

3939
function collapse() {
4040
if (initialAnimSkip) {
41+
initialAnimSkip = false;
4142
element.removeClass('collapsing');
4243
element.addClass('collapse');
4344
element.css({height: 0});
@@ -71,4 +72,4 @@ angular.module('ui.bootstrap.collapse', ['ui.bootstrap.transition'])
7172
//TODO:
7273
//- refactor to remove code duplication
7374
//- corner cases - what happens in animation is in progress?
74-
//- tests based on the DOM state / classes
75+
//- tests based on the DOM state / classes

0 commit comments

Comments
 (0)