fix(ngEventDirs): don't wrap the event handler in $apply if already in $digest
Digest cycle already in progress error can inadvertently be caused when triggering an element's click event while within an active digest cycle. This is due to the ngEventsDirs event handler always calling $rootScope.$apply regardless of the status of $rootScope.$$phase. Checking the phase and calling the function immediately if within an active digest cycle will prevent the problem without reducing current functionality. Closes #14673 Closes #14674
M
Mark Gardner committed
6b0193e4d9a796d8a7eead3c5a34d19a66b877c2
Parent: e500fb6
Committed by Martin Staffa <mjstaffa@googlemail.com>
on 7/25/2018, 10:43:14 AM