Skip to content

Commit f942d5b

Browse files
authored
fix(upload): button will disappear when count meets limitation (#2884)
1 parent 7ea8de4 commit f942d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/upload/Upload.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export default {
310310
}
311311

312312
const uploadButton = (
313-
<div class={uploadButtonCls} style={children ? undefined : { display: 'none' }}>
313+
<div class={uploadButtonCls} style={children.length ? undefined : { display: 'none' }}>
314314
<VcUpload {...vcUploadProps}>{children}</VcUpload>
315315
</div>
316316
);

0 commit comments

Comments
 (0)