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

Is it possible to add dropEffect property to onMoveNode callback

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

Description

React Dnd library supports different dropEffects "copy" and "move" which are switched when user press 'Alt' key. By using custom node renderer I am able to enable it, but then I don't have this parameter in callback.
In `react-sortable-tree.js` it is defined `endDrag` handler and there I see `dropEffect` with proper value in passed parameters, but it is somehow deleted and not passed to `moveNode` function which executes callback.
So far I feel that I dive enough into this to make custom pull request, but I currently I am stuck and can't figure out why dropEffect is not passed to moveNode function.

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.