frontend-collective / frontend-collective/react-sortable-tree

Using SortableTreeWithoutDndContext does not work

Open
#788 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

![rstwithoutdndcontext](https://user-images.githubusercontent.com/451977/91458993-5a97b000-e8b0-11ea-9945-d0205d3650a6.png)

There are two DnDs in a page.
One for the RST with external nodes, and the other for the tab swapping.
We place `` in top level component and
use **SortableTreeWithoutDndContext** in child component
to avoid [two HTML backends issue](https://github.com/react-dnd/react-dnd/issues/186).

It seems the RST renders nothing or returns null as the **dragDropManager** is undefined.
https://github.com/frontend-collective/react-sortable-tree/blob/2a5f741d0bc965b47a8ea6764e98a13aa3e51544/src/react-sortable-tree.js#L941-L949

Is there a workaround to deal with this issue?
Thank You.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.