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 Dragger component hover bug on borders of inner elements #15634

Closed
1 task done
guido-visser opened this issue Mar 25, 2019 · 0 comments · Fixed by #15636
Closed
1 task done

Upload Dragger component hover bug on borders of inner elements #15634

guido-visser opened this issue Mar 25, 2019 · 0 comments · Fixed by #15636
Assignees

Comments

@guido-visser
Copy link

guido-visser commented Mar 25, 2019

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Drag a file precicely on the border of the child component. (It doesn't matter if a border is set or not, but it makes the example easier to reproduce)

What is expected?

I expect that I can drop my file anywhere on the Upload.Dragger compenent, even with children, without the possibility of invoking the native browser behavior.

What is actually happening?

When you exactly drag on the border of a child component in the dragger area, the dragger area starts to flash. When you then drop at the wrong time, the native browser behavior is invoked (which is opening the file dropped on the viewport)

Environment Info
antd 3.15.2
React 16.6.3
System Windows 10
Browser Chrome 73.0.3683.86

A gif of what happens: https://i.imgur.com/CUgsFqT.gifv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants