React-dnd: V9.4.0 Error: Cannot have two HTML5 backends at the same time.

Created on 8 Oct 2019  ·  4Comments  ·  Source: react-dnd/react-dnd

Describe the bug

Although the new version has been fixed this issue in #1422 .
But I still found has this problem .Maybe ignore some situation?
Look like this https://nexxluo.github.io/tablex/doc-draggable-index.
I try to click the menu more time, it throw this problem.

There is a gif image below, maybe it is slow, wait patiently...

TEST

  • OS: windows 10
  • Browser : chrome 77.0
  • Version : 9.4.0

Most helpful comment

I solved it with this way.

<DndProvider backend={HTML5Backend} context={window}></DndProvider>

All 4 comments

I am also having same issue.

I solved it with this way.

<DndProvider backend={HTML5Backend} context={window}></DndProvider>

I am also having same issue.

I solved it with using window context.

Thanks! Why it can works? Are there any documents about this?

我遇到了相同的问题,用这个方法解决了,但是为什么它能生效呢?有相关文档吗?

Was this page helpful?
0 / 5 - 0 ratings