@bnsights/bbsf-controls 1.2.19 → 1.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -394,7 +394,13 @@ If the issue persists, consider using a different HTML editor component that's c
394
394
 
395
395
  ## Change Log
396
396
 
397
- ## 1.2.19 / 15-04-2026
397
+ ## 1.2.20 / 15-04-2026
398
+
399
+ =====================
400
+
401
+ - Fix previous version
402
+
403
+ ## 1.2.19 / 15-04-2026 []
398
404
 
399
405
  =====================
400
406
 
@@ -7529,7 +7529,9 @@ class FileUploadComponent {
7529
7529
  };
7530
7530
  formControl.setErrors(newErrors);
7531
7531
  formControl.markAsTouched();
7532
- this.uploader.queue = [];
7532
+ const max = this.options.maxNoOfFiles;
7533
+ //keep existing valid files, remove only extra ones
7534
+ this.uploader.queue = this.uploader.queue.slice(0, max);
7533
7535
  return;
7534
7536
  }
7535
7537
  if (this.options.isMultipleFile && this.options.maxSizeForAllFilesInMB != null && this.options.maxSizeForAllFilesInMB > 0) {
@@ -7560,9 +7562,7 @@ class FileUploadComponent {
7560
7562
  };
7561
7563
  formControl.setErrors(newErrors);
7562
7564
  formControl.markAsTouched();
7563
- const max = this.options.maxNoOfFiles;
7564
- //keep existing valid files, remove only extra ones
7565
- this.uploader.queue = this.uploader.queue.slice(0, max);
7565
+ this.uploader.queue = [];
7566
7566
  return;
7567
7567
  }
7568
7568
  let AddedQueue = this.uploader.queue.filter((obj) => obj['some'].lastModified != null);