From 68f3e931ffd37a37b2622653fb3a65ee78530a48 Mon Sep 17 00:00:00 2001 From: nd0ut Date: Mon, 19 Sep 2022 19:57:06 +0300 Subject: [PATCH] fix(upload-list): do not close modal automatically if `--cfg-confirm-upload` enabled --- blocks/UploadList/UploadList.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/blocks/UploadList/UploadList.js b/blocks/UploadList/UploadList.js index 280d774d0..6aa4f9fe7 100644 --- a/blocks/UploadList/UploadList.js +++ b/blocks/UploadList/UploadList.js @@ -151,10 +151,6 @@ export class UploadList extends UploaderBlock { addMoreBtnDisabled: tooMany || exact, addMoreBtnHidden: exact && !this.getCssData('--cfg-multiple'), }); - - if (filesCount > 0 && !this.getCssData('--cfg-confirm-upload') && fitCountRestrictions && allUploaded) { - this.$.onDone(); - } } initCallback() {