ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug:$digest already in progress when click quickly -- only iOS

Open mljsgto222 opened this issue 10 years ago • 4 comments

type: bug Platform: iOS 9.3 webview and safari

if the user click element quickly when use ng-click or ionicGesture only on iOS, this error $digest already in progress in ionic 1.3.0.

And I found this issus in this code: scope.$apply(function() { clickHandler(scope, {$event: (event)}); }); https://github.com/driftyco/ionic/blob/master/js/angular/directive/ngClick.js#L21

After I replaced the $apply with $applyAsync or $timeout, this issue is resolved

mljsgto222 avatar May 24 '16 10:05 mljsgto222

Hello! After reviewing this issue it seems that this is actually an Angular issue. Because of this I will be closing this issue for now. Thanks for using Ionic!

jgw96 avatar Jul 18 '16 19:07 jgw96

@jgw96 Can you link to the Angular issue that you mentioned?

jskrepnek avatar Aug 02 '16 19:08 jskrepnek

The issue is not with Angular but with the complete drop of Ionic v1 support. The issue still exists in ionic v1.3.3 on iOS 10+ (10.1, 10.2, 10.3).

For anyone arriving here and having the same issue, here's my patch (for what it's worth).

VinceOPS avatar Aug 24 '17 23:08 VinceOPS

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 02 '18 05:09 ionitron-bot[bot]