Skip to content

Commit

Permalink
fix(comp:upload): file is not uploaded when maxCount is 1 (#1786)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Jan 8, 2024
1 parent 7a69ea1 commit 400a0b4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -32,7 +32,7 @@ export function useUploadControl(fileList: ComputedRef<UploadFile[]>, uploadRequ
watch(
[proxyedFileList, () => proxyedFileList.value.length],
([currentFileList, currentLength], [preFileList, preLength]) => {
if (currentLength === preLength) {
if (currentLength === preLength && currentLength !== 1 && preLength !== 1) {
return
}

Expand Down

0 comments on commit 400a0b4

Please sign in to comment.