pragmatic-drag-and-drop icon indicating copy to clipboard operation
pragmatic-drag-and-drop copied to clipboard

Tree codesandbox not working

Open nooblyf opened this issue 1 year ago • 3 comments

url: https://atlassian.design/components/pragmatic-drag-and-drop/examples/#tree codesandbox: https://codesandbox.io/p/sandbox/7ckkrw

Screenshot 2024-09-15 at 20 30 08

nooblyf avatar Sep 15 '24 15:09 nooblyf

Any news on this one?

codenomnom avatar Sep 26 '24 13:09 codenomnom

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:

  1. in /pragmatic-drag-and-drop/documentation/examples/pieces/tree/tree-item.tsx file remove lines 476 and 478
  2. in /pragmatic-drag-and-drop/documentation/examples/pieces/tree/move-dialog.tsx replace lines 74-118 to return 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

marcinpl87 avatar Oct 01 '24 18:10 marcinpl87

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!

codenomnom avatar Oct 03 '24 19:10 codenomnom