Solvedui grid Angular 1.6 - Possibly unhandled rejection: canceled

Click on column header to sort data and it throws "Possibly unhandled rejection: canceled" error under Angular 1.6.

http://plnkr.co/edit/bXEXwcvHz1dK655nHpeT?p=preview

55 Answers

✔️Accepted Answer

For anyone that wants a workaround (not recommended, though), you can globally silence unhandled promise rejections like this —

app.config(['$qProvider', function ($qProvider) {
    $qProvider.errorOnUnhandledRejections(false);
}]);

Other Answers:

Any idea about when is ui-grid planning to support Angular JS 1.6 version?

This is a result of timeout.cancel (about 8 times in code). UI-Grid creates own promise with .then(), right after defining the cancel. This is the main offender, but there are others:

 Grid.prototype.queueRefresh = function queueRefresh() {
                    var self = this;

                    if (self.refreshCanceller) {
                        $timeout.cancel(self.refreshCanceller);
                    }

                    self.refreshCanceller = $timeout(function () {
                        self.refreshCanvas(true);
                    });

                    self.refreshCanceller.then(function () {
                        self.refreshCanceller = null;
                    });

                    return self.refreshCanceller;
                };

simple change to the then part to

self.refreshCanceller.then(function () {
                        self.refreshCanceller = null;
                    }, angular.noop)

+1 support angular 1.6

Any update on this?

More Issues: