@bnsights/bbsf-controls 1.2.18 → 1.2.19
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,6 +394,12 @@ 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
|
|
398
|
+
|
|
399
|
+
=====================
|
|
400
|
+
|
|
401
|
+
- Fix `BBSF-FileUpload` `(onFileUpload)` if max length exceeded keep the max number of files and ignore others
|
|
402
|
+
|
|
397
403
|
## 1.2.18 / 09-04-2026
|
|
398
404
|
|
|
399
405
|
=====================
|
|
Binary file
|
|
@@ -7560,7 +7560,9 @@ class FileUploadComponent {
|
|
|
7560
7560
|
};
|
|
7561
7561
|
formControl.setErrors(newErrors);
|
|
7562
7562
|
formControl.markAsTouched();
|
|
7563
|
-
this.
|
|
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);
|
|
7564
7566
|
return;
|
|
7565
7567
|
}
|
|
7566
7568
|
let AddedQueue = this.uploader.queue.filter((obj) => obj['some'].lastModified != null);
|