Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload inside Form.Item with label has a large blank space below it #23339

Closed
1 task done
m-weeks opened this issue Apr 16, 2020 · 3 comments · Fixed by #26367
Closed
1 task done

Upload inside Form.Item with label has a large blank space below it #23339

m-weeks opened this issue Apr 16, 2020 · 3 comments · Fixed by #26367
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive

Comments

@m-weeks
Copy link

m-weeks commented Apr 16, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Putting an upload with showUploadList={true} inside a form item with a label inside a form with layout="true". Once uploading an image to this input, the issue is caused.

What is expected?

The uploaded images and upload button should appear properly inline without a large space below

What is actually happening?

The images and button appear next to each other, but there is a space below them the size of the upload button.

Environment Info
antd 4.1.3
React 16.13.1
System Windows 10
Browser Chrome 80.0.3987.163
@zombieJ zombieJ added the 🐛 Bug Ant Design Team had proved that this is a bug. label Apr 18, 2020
@JMarkoski
Copy link

Is someone working on this? I would like to take it.

@afc163
Copy link
Member

afc163 commented Jul 31, 2020

@JMarkoski PR welcome~

@komagic
Copy link

komagic commented Aug 24, 2020

这个是什么情况,我也遇到了

afc163 added a commit that referenced this issue Aug 24, 2020
afc163 added a commit that referenced this issue Aug 24, 2020
* style: fix Upload picture-card button style

close #26317
close #23339

* style: tweak Upload list animation

close #22386

* fix snapshot change

* docs: update Upload demos

* add test case

* update form demo

* fix test case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants