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

拖拽区块预览报错 #2828

Closed
zip01 opened this issue Sep 25, 2019 · 1 comment
Closed

拖拽区块预览报错 #2828

zip01 opened this issue Sep 25, 2019 · 1 comment
Labels

Comments

@zip01
Copy link

zip01 commented Sep 25, 2019

问题描述

在使用【元素拖拽放置】组件的过程中,发现无法拖拽,查看官方的例子也出现同样问题
官方例子预览: https://unpkg.com/@icedesign/dn-d-block@3.0.0/build/index.html

错误信息

控制台错误:
Uncaught Invariant Violation: Item must be an object.
at Object.r [as default] (https://unpkg.com/@icedesign/dn-d-block@3.0.0/build/index.js:1:3035)
at e.beginDrag (https://unpkg.com/@icedesign/dn-d-block@3.0.0/build/index.js:1:32622)
at Object.beginDrag (https://unpkg.com/@icedesign/dn-d-block@3.0.0/build/index.js:31:47301)
at e.handleTopDragStart (https://unpkg.com/@icedesign/dn-d-block@3.0.0/build/index.js:31:104044)

环境:
"react": "^16.2.0",
"react-dom": "^16.4.1",
"@alifd/next": "^1.x",

在其依赖组件react-dnd github issues中有同样问题:
react-dnd/react-dnd#1051

@imsobear imsobear changed the title ice拖拽组件无效 拖拽区块预览报错 Sep 25, 2019
@imsobear
Copy link
Collaborator

暂时先下线此区块,请按照 react-dnd 官方文档操作。

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

No branches or pull requests

2 participants