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

在火狐浏览器中拖拽完成后会打开搜索页面 #35

Closed
Pandaft opened this issue Aug 6, 2023 · 2 comments
Closed

在火狐浏览器中拖拽完成后会打开搜索页面 #35

Pandaft opened this issue Aug 6, 2023 · 2 comments

Comments

@Pandaft
Copy link

Pandaft commented Aug 6, 2023

见动图:

gif

在 Chrome 、 Edge 浏览器上没有该问题。

@Alfred-Skyblue
Copy link
Owner

在火狐浏览器中可以使用以下方式阻止打开搜索页的问题

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

建议把这段代码添加到全局

@Pandaft
Copy link
Author

Pandaft commented Aug 11, 2023

实测有效,感谢!

@Pandaft Pandaft closed this as completed Aug 11, 2023
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