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

全局干掉了ondrop事件的,是什么样的蠢货才会干这种事 #115

Open
limengning opened this issue Apr 15, 2024 · 3 comments
Open

Comments

@limengning
Copy link

document.body.ondrop = function (event) {
event.preventDefault();
event.stopPropagation();
}

@seashells778
Copy link

没看懂,请这个是什么问题呢

@limengning
Copy link
Author

image

@seashells778
Copy link

我懂了,是因为组件里定义了drop事件,将全局的事件给覆盖了,导致项目中的drop不好使了

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

No branches or pull requests

2 participants