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

自定义ER React 节点内部使用到了dnd-kit 进行排序,如何取消节点内部拖动和节点整体拖动冲突 #4266

Open
zanmeipaul opened this issue Apr 18, 2024 · 1 comment

Comments

@zanmeipaul
Copy link

问题描述

自定义ER React 节点内部使用到了dnd-kit 进行排序,如何取消节点内部拖动和节点整体拖动冲突
image

重现链接

https://codesandbox.io/s/new

重现步骤

自定义ER React 节点内部使用到了dnd-kit 进行排序,如何取消节点内部拖动和节点整体拖动冲突
image

预期行为

里面和外面的拖动不冲突

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@lloydzhou
Copy link
Contributor

需要排序的节点放一个统一的容器,这个容器监听一下 dragstart 事件,禁止事件冒泡

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