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

Commit 3144633

Browse files
committed
fix(collapse): trigger digest after
Fixes #4647 Fixes #4628 Fixes #4561 Closes #4651
1 parent 7985a46 commit 3144633

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/collapse/collapse.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ angular.module('ui.bootstrap.collapse', [])
1515
addClass: 'in',
1616
easing: 'ease',
1717
to: { height: element[0].scrollHeight + 'px' }
18-
}).start().done(expandDone);
18+
}).start().finally(expandDone);
1919
} else {
2020
$animate.addClass(element, 'in', {
2121
to: { height: element[0].scrollHeight + 'px' }
@@ -50,7 +50,7 @@ angular.module('ui.bootstrap.collapse', [])
5050
$animateCss(element, {
5151
removeClass: 'in',
5252
to: {height: '0'}
53-
}).start().done(collapseDone);
53+
}).start().finally(collapseDone);
5454
} else {
5555
$animate.removeClass(element, 'in', {
5656
to: {height: '0'}

0 commit comments

Comments
 (0)