sl-vue-tree
sl-vue-tree copied to clipboard
Shift selection causes nodes to duplicate on drag and drop
How to replicate the bug in the demo
https://stream-labs.github.io/sl-vue-tree/demo/index
- Click Folder 2, hold Shift, click Folder 5
- Drag and drop the selection to Folder 1
- Item 3, Item 4, Folder 3 and Item 5 are duplicated into their parent folder
Update: Happens also when you select a folder and its children individually
Thanks for the report
Just a bump and a clarification: @Piersen's update in post 2 is the most specific description of the bug (I think you can strike the word "also").
A simpler replication of the bug: multiselect Folder2 and Item3 and drag them to the top of the list. You'll get a duplicate of Item3.
So can you give a quick tip where I have to look in the code for the bug? I am pretty sure you have a few guesses already? :)