fix: upload open when trigger hidden label

pull/2900/head
tanjinzhou 2020-09-23 14:06:42 +08:00
parent 61e1f2414e
commit c6c0ebc670
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ export default {
// Remove id to avoid open by label when trigger is hidden
// https://github.com/ant-design/ant-design/issues/14298
if (!children || disabled) {
if (!children.length || disabled) {
delete vcUploadProps.id;
}