Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dsheyp opened this issue Apr 12, 2021 · 6 comments
Closed

Comments

@dsheyp
Copy link

dsheyp commented Apr 12, 2021

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

@dsheyp dsheyp changed the title Pluging Draggable: Dragging downwards inserts element in wrong order Plugin Draggable: Dragging elment downwards inserts it in wrong order Apr 12, 2021
@dsheyp dsheyp changed the title Plugin Draggable: Dragging elment downwards inserts it in wrong order Plugin Draggable: Dragging an element downwards inserts it in wrong order Apr 12, 2021
@phphe
Copy link
Owner

phphe commented Apr 12, 2021

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

@dsheyp
Copy link
Author

dsheyp commented Apr 12, 2021

hi

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

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

@phphe
Copy link
Owner

phphe commented Apr 12, 2021 via email

@dsheyp
Copy link
Author

dsheyp commented Apr 12, 2021

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
Copy link
Owner

phphe commented Apr 12, 2021

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 phphe closed this as completed in cb64dac Apr 12, 2021
@phphe
Copy link
Owner

phphe commented Apr 12, 2021

fixed in 2.0.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants