Skip to content

Commit e9e4de6

Browse files
author
Vic
committed
$apply to $applyAsync
$applyAsync seem to fix the $digest in progress issue reported in #168
1 parent 40e60ad commit e9e4de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui-scroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ angular.module('ui.scroll', [])
356356
let updates = updateDOM();
357357

358358
// We need the item bindings to be processed before we can do adjustment
359-
$scope.$apply(() => $timeout(() => {
359+
$scope.$applyAsync(() => $timeout(() => {
360360
// show elements after data binging has been done
361361
updates.inserted.forEach(w => w.element.removeClass('ng-hide'));
362362
updates.prepended.forEach(w => w.element.removeClass('ng-hide'));

0 commit comments

Comments
 (0)