telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
466 stars 215 forks source link

Using kendo-uploaddropzone in kendo-dialog results in increasing number of uploads #4238

Closed powerwebdev closed 5 months ago

powerwebdev commented 6 months ago

Describe the bug When the kendo-uploaddropzone is used together with a kendo-upload in a kendo-dialog, everytime the dialog is reopened, and a file is drag-and-dropped into the kendo-uploaddropzone, the number of calls to the saveUrl increases (visible in the network tab). E.g. open the dialog once results in one upload, opening it twice results in uploading the file twice, and so on.

To Reproduce Put a kendo-uploaddropzone and a kendo-upload into a kendo-dialog, open the dialog, upload a file and check the network tab in the dev tools. Close the dialog, open it again and upload a file (via the dropzone).

See attached project for an example: kendo-upload.zip

Expected behavior Expected behavior is that the upload only happens once.

Browser

yanmariomenev commented 6 months ago

Possibly related to - https://github.com/telerik/kendo-angular/issues/4213

dtopalov commented 5 months ago

The initial reason for the described undesired behavior seems to be the same as the linked Upload issue - recreating the Upload component causes increasing number of uploads when new file is dropped in the drop zone.

Closing this as a duplicate, to be tracked in the original thread: https://github.com/telerik/kendo-angular/issues/4213