mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
This reverts commit b59a1102f1.
This commit is contained in:
@@ -125,7 +125,7 @@ const InternalUpload: React.ForwardRefRenderFunction<UploadRef, UploadProps> = (
|
||||
// Cut to match count
|
||||
if (maxCount === 1) {
|
||||
cloneList = cloneList.slice(-1);
|
||||
} else if (typeof maxCount === 'number' && Number.isFinite(maxCount) && maxCount > 0) {
|
||||
} else if (maxCount) {
|
||||
exceedMaxCount = cloneList.length > maxCount;
|
||||
cloneList = cloneList.slice(0, maxCount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user