uploadcare / ngx-uploadcare-widget

Angular 2+ wrapper for Uploadcare Widget
MIT License
15 stars 10 forks source link

Cancel upload causes error #30

Closed array-digital closed 4 years ago

array-digital commented 5 years ago

When I cancel an upload before it has finished I get a JS error. In chrome the message reads "ERROR TypeError: Cannot read property 'promise' of null", in Firefox the message reads "ERROR TypeError: "selectionPromise is null". The widget still continues to work but related call backs (on-change, on-progress...) are no longer called.

I have used a fresh NG project to test using the latest version of the widget.

ZNick1982 commented 5 years ago

Hello. Thanks for your report. I will take a look and reply to you shortly.

Kind regards, Nikolay Zherdev.

ZNick1982 commented 5 years ago

Hello Craig.

The issue is fixed on: https://github.com/uploadcare/ngx-uploadcare-widget/pull/31 Thanks for your reporting.

Kind regards, Nikolay Zherdev.