Skip to content

Commit

Permalink
Fixed #909 - [FileUpload] when :fileLimit is exceeded, Upload button …
Browse files Browse the repository at this point in the history
…should not be active
  • Loading branch information
tugcekucukoglu committed Jan 28, 2021
1 parent e1d0086 commit 35a3e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/fileupload/FileUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export default {
return this.disabled || (this.fileLimit && this.fileLimit <= this.files.length + this.uploadedFileCount);
},
uploadDisabled() {
return this.disabled || !this.hasFiles;
return this.disabled || !this.hasFiles || (this.fileLimit && this.fileLimit < this.files.length);
},
cancelDisabled() {
return this.disabled || !this.hasFiles;
Expand Down

0 comments on commit 35a3e43

Please sign in to comment.