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

Commit 9eca35a

Browse files
fix(collapse): add the "in" class for expanded panels
Closes #1192
1 parent a72c635 commit 9eca35a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/collapse/collapse.js

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ angular.module('ui.bootstrap.collapse',['ui.bootstrap.transition'])
5050
initialAnimSkip = false;
5151
if ( !isCollapsed ) {
5252
fixUpHeight(scope, element, 'auto');
53+
element.addClass('in');
5354
}
5455
} else {
5556
doTransition({ height : element[0].scrollHeight + 'px' })
@@ -58,6 +59,7 @@ angular.module('ui.bootstrap.collapse',['ui.bootstrap.transition'])
5859
// the group while the animation was still running
5960
if ( !isCollapsed ) {
6061
fixUpHeight(scope, element, 'auto');
62+
element.addClass('in');
6163
}
6264
});
6365
}
@@ -66,6 +68,7 @@ angular.module('ui.bootstrap.collapse',['ui.bootstrap.transition'])
6668

6769
var collapse = function() {
6870
isCollapsed = true;
71+
element.removeClass('in');
6972
if (initialAnimSkip) {
7073
initialAnimSkip = false;
7174
fixUpHeight(scope, element, 0);

0 commit comments

Comments
 (0)