From 35a3e434346b010ba7932191ecf3d188919ee6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 28 Jan 2021 14:43:21 +0300 Subject: [PATCH] Fixed #909 - [FileUpload] when :fileLimit is exceeded, Upload button should not be active --- src/components/fileupload/FileUpload.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/fileupload/FileUpload.vue b/src/components/fileupload/FileUpload.vue index b2644b1140..a03e1418ce 100755 --- a/src/components/fileupload/FileUpload.vue +++ b/src/components/fileupload/FileUpload.vue @@ -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;