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

使用dnd.start拖拽画布外A元素到画布上已生成的目标节点B区域中时,目标节点B的原生事件dragenter,dragover,dragleave, drop事件都无法触发。希望可以触发 #4464

Open
Wowoy opened this issue Oct 12, 2024 · 3 comments

Comments

@Wowoy
Copy link

Wowoy commented Oct 12, 2024

功能描述

问题:
页面分为左侧画布外的侧边栏区域,和右侧的画布区域:

1、为左侧边栏的源节点A绑定dragstart事件,拖动A节点到画布上时,事件处理函数会调用dnd.start(node)方法创建一个自定义的拖拽节点A1,放置到画布上时会生成自定义的放置节点A2

2、为A的放置节点容器上绑定dragenter,dragover,dragleave, drop事件

3、当想将左侧边栏的另一个源节点B 拖拽到 画布上已存在的目标节点 A内时,A的放置节点的原生事件dragenter,dragover,dragleave, drop并不会触发。

排查发现正是dnd.start()导致以上原生的drag相关事件不会被触发

期望解决方案

希望使用dnd.start后,也可以触发画布上目标节点区域内的dragenter,dragover,dragleave, drop事件

@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 12, 2024

👋 @Wowoy

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@Wowoy
Copy link
Author

Wowoy commented Oct 12, 2024

#2555

类似于之前提过的这个issue,但没有人回答,即希望能够在拖拽期间和拖拽完成在目标节点上监听事件

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

3 participants
@Wowoy and others