Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Upload.Dragger doesn't catch file drop on whole area #11869
macos 10.13.6 (17G65), chrome Version 68.0.3440.106 (Official Build) (64-bit)
Steps to reproduce
It's observable on any Upload.Dragger component (each dragger has padding defined for upload wrapper (16px)). The minimal reproduction link shows the extreme version of it by updating the padding to 50px.
What is expected?
Upload.Dragger should handle file drop on whole area.
What is actually happening?
Padding on class .ant-upload.ant-upload-drag ("16px 0") is causing the 16px from bottom/top are not handled as file drop (by default browser usually just displays the file).
This gap could be: