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

[Question] How to change drag'n'drop handle behaviour

Open
#263 1 comment 0 reactions 0 assignees View on GitHub
enhancement question
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

Hi, first of all thanks a lot for the awesome component and sorry if this is a wrong place to ask a question. Currently when you drag the node around it is being removed from the tree and used as a drag handle - what i'm trying to do is to keep the node in the tree and use a "clone" handle, more or less like this (not exactly like this, but found the image in one of the issues):
![34749601-a1a65036-f5a2-11e7-9d24-6727e6d5eec6](https://user-images.githubusercontent.com/366813/36841784-c48a08e4-1d49-11e8-8f01-cdb9c3fe1815.gif)

So far I couldn't find an option to do that apart from forking and debugging my way through startDrag / moveNode methods (and i fear there's going to be a lot of things to adapt).

Is this the right approach? Would you be interested in providing this option to users (provided i'll be able to actually do it and open the PR)

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.