Skip to content

Commit 7199e09

Browse files
committed
Merge pull request #3842 from labrute974/patch-1
fix(slidebox): removing an item breaks slidebox
2 parents 889ea34 + f3a8537 commit 7199e09

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: js/angular/directive/slideBox.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@
3737
*/
3838
IonicModule
3939
.directive('ionSlideBox', [
40+
'$animate',
4041
'$timeout',
4142
'$compile',
4243
'$ionicSlideBoxDelegate',
4344
'$ionicHistory',
4445
'$ionicScrollDelegate',
45-
function($timeout, $compile, $ionicSlideBoxDelegate, $ionicHistory, $ionicScrollDelegate) {
46+
function($animate, $timeout, $compile, $ionicSlideBoxDelegate, $ionicHistory, $ionicScrollDelegate) {
4647
return {
4748
restrict: 'E',
4849
replace: true,
@@ -155,6 +156,9 @@ function($timeout, $compile, $ionicSlideBoxDelegate, $ionicHistory, $ionicScroll
155156
'</div>',
156157

157158
link: function($scope, $element, $attr) {
159+
// Disable ngAnimate for slidebox and its children
160+
$animate.enabled(false, $element);
161+
158162
// if showPager is undefined, show the pager
159163
if (!isDefined($attr.showPager)) {
160164
$scope.showPager = true;

0 commit comments

Comments
 (0)