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

How to get previous node in onMoveNode

Open
#322 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

Hi. Thanks a lot for this library. It looks really promising for my project. However I have one question. I'm using https://github.com/collectiveidea/awesome_nested_set in rails backend and to move node it accepts only move_to_left_of node and move_to_right_of_node. The problem is now to find the previous node in onMoveNode callback. How to get previous node here? Let's say I want to move node B into C before D.

- A
- B
- C
- D

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.