phphe/he-tree-vue

Plugin Draggable: Dragging an element downwards inserts it in wrong order

dsheyp opened this issue · 6 comments

Hi

I'm using v2.0.8 with the plugins Fold, Check, Draggable as in your Demo

When an elment is dragged downwards after dropping it will be inserted at index (placeholderIndex - 1) instead of (placeholderIndex). Dragging an element upwards works as expected.

Any ideas what's going wrong here?

Thanks
dsheyp

phphe commented

after drop, node will be inserted to targetPath. targetPath is same with placeholder path.

hi

many thanks for your response. please see screencast video for details

https://drive.google.com/file/d/1n1j63kIzEO4imCpWOhZNmPQUv2AlyevH/view?usp=sharing

phphe commented

Hi many thanks for your answer

Tree.vue was slightly modified due to incompatibilities with jsx

Please see https://codesandbox.io/s/laughing-cerf-buenv for more details

Thank you
dsheyp

phphe commented

Thank you for report. It is a bug since 2.0.8. You can install previous version 2.0.7. I am fixing it.

phphe commented

fixed in 2.0.9