Skip to content

Commit

Permalink
Merge pull request #3842 from labrute974/patch-1
Browse files Browse the repository at this point in the history
fix(slidebox): removing an item breaks slidebox
  • Loading branch information
mlynch committed Dec 6, 2015
2 parents 889ea34 + f3a8537 commit 7199e09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/angular/directive/slideBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@
*/
IonicModule
.directive('ionSlideBox', [
'$animate',
'$timeout',
'$compile',
'$ionicSlideBoxDelegate',
'$ionicHistory',
'$ionicScrollDelegate',
function($timeout, $compile, $ionicSlideBoxDelegate, $ionicHistory, $ionicScrollDelegate) {
function($animate, $timeout, $compile, $ionicSlideBoxDelegate, $ionicHistory, $ionicScrollDelegate) {
return {
restrict: 'E',
replace: true,
Expand Down Expand Up @@ -155,6 +156,9 @@ function($timeout, $compile, $ionicSlideBoxDelegate, $ionicHistory, $ionicScroll
'</div>',

link: function($scope, $element, $attr) {
// Disable ngAnimate for slidebox and its children
$animate.enabled(false, $element);

// if showPager is undefined, show the pager
if (!isDefined($attr.showPager)) {
$scope.showPager = true;
Expand Down

0 comments on commit 7199e09

Please sign in to comment.