dabeng / OrgChart

It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.
MIT License
2.83k stars 768 forks source link

Can not change parent of node when setting verticalLevel #650

Closed luantm16110560 closed 1 year ago

luantm16110560 commented 2 years ago

Hello team dev, I am using OrgChart and I have an issue

I create new org chart and it's has attribute verticalLevel , then I enable draggable: true , I can drag and drop normally but parent_id of node does not correctly. please support to me

Here is my custom code:

image

e94037442042e31cba53

Result is

deb991678a61493f1070

Expect like this

image

dabeng commented 1 year ago

Hi @luantm16110560 From the version 3.4.0, you can drag&drop in the hybrid(horizontal + vertical) chart with the help of JSONDigger utility class. I have created the Demo on codepen.io for you.