pragmatic-drag-and-drop
pragmatic-drag-and-drop copied to clipboard
Tree codesandbox not working
url: https://atlassian.design/components/pragmatic-drag-and-drop/examples/#tree codesandbox: https://codesandbox.io/p/sandbox/7ckkrw
Any news on this one?
If you'd like to continue work with this example, without fixing core issue, you can remove code related to @atlaskit/modal-dialog because this package cause this issue.
To do it you need to change only 2 files:
- in
/pragmatic-drag-and-drop/documentation/examples/pieces/tree/tree-item.tsxfile remove lines 476 and 478 - in
/pragmatic-drag-and-drop/documentation/examples/pieces/tree/move-dialog.tsxreplace lines 74-118 toreturn null;
you will not have move dialog, but drag&drop will work 🙂
here is codesandbox after changes mentioned above - https://codesandbox.io/p/sandbox/tree-forked-vtz3z3
Hey, thanks for spending the time figuring this out. I was hoping it's something as simple as that, but got too lazy to check it myself 😊 Appreciated!