Skip to content

using infinite scroll while menu is open throws a [$rootScope:inprog] $digest already in progress exception #6989

@Joel-Kornbluh

Description

@Joel-Kornbluh

Bug Description

With the infiniteScroll fetaure, when the grid is loading additional data (i.e. page) while a menu or column menu is open, it will throw a [$rootScope:inprog] $digest already in progress exception.

Cause

This bug was introduced in v4.2.0 by this commit which replaces $timeout with $scope.$apply in many places for performance reasons.

Specifically, dataLoaded - which is what users call once additional data has finished loading - calls adjustScroll which calls $rootScope.$applyAsync and indirectly wraps a beginScroll event trigger which has a registered handler in the column menu which in turn calls $scope.$apply again in applyHideMenu.

Possible Fix

  1. Restore the $timeout in applyHideMenu in place of $scope.$apply, or:
  2. Use some kind of "safe" $apply wherever we use $scope.$apply/$scope.$applyAsync

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions