File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,12 @@ angular.module('ui.bootstrap.collapse',['ui.bootstrap.transition'])
49
49
if ( initialAnimSkip ) {
50
50
initialAnimSkip = false ;
51
51
if ( ! isCollapsed ) {
52
+ element . css ( 'display' , '' ) ;
52
53
fixUpHeight ( scope , element , 'auto' ) ;
53
54
element . addClass ( 'in' ) ;
54
55
}
55
56
} else {
57
+ element . css ( 'display' , '' ) ;
56
58
doTransition ( { height : element [ 0 ] . scrollHeight + 'px' } )
57
59
. then ( function ( ) {
58
60
// This check ensures that we don't accidentally update the height if the user has closed
@@ -72,9 +74,12 @@ angular.module('ui.bootstrap.collapse',['ui.bootstrap.transition'])
72
74
if ( initialAnimSkip ) {
73
75
initialAnimSkip = false ;
74
76
fixUpHeight ( scope , element , 0 ) ;
77
+ element . css ( 'display' , 'none' ) ;
75
78
} else {
76
79
fixUpHeight ( scope , element , element [ 0 ] . scrollHeight + 'px' ) ;
77
- doTransition ( { 'height' :'0' } ) ;
80
+ doTransition ( { 'height' :'0' } ) . then ( function ( ) {
81
+ element . css ( 'display' , 'none' ) ;
82
+ } ) ;
78
83
}
79
84
} ;
80
85
}
You can’t perform that action at this time.
0 commit comments