Fileupload component disables upload button #14046
Labels
LTS-FIXED-14.2.16
LTS-FIXED-15.4.13
Fixed in PrimeNG LTS 15.4.13
LTS-PORTABLE
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
If the fileupload is configured with the following properties, it will disable the upload button when files are uploaded one after the other.
Environment
Angular: 16.2.7
PrimeNG: 16.7.0
Browser: latest Chrome
Reproducer
https://stackblitz.com/edit/djzi3p?file=src%2Fapp%2Fdemo%2Ffile-upload-basic-demo.ts
Angular version
16.2.7
PrimeNG version
16.7.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.20.2
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
After investigating in the code, the isChooseDisabled somehow adds files.length and the uploadedFileCount variable to compare to the maximum number of files.
I do not understand why it even adds it like that or why uploadedFileCount is counted in the first place.
The text was updated successfully, but these errors were encountered: