sl-vue-tree icon indicating copy to clipboard operation
sl-vue-tree copied to clipboard

Shift selection causes nodes to duplicate on drag and drop

Open Piersen opened this issue 6 years ago • 4 comments

How to replicate the bug in the demo

https://stream-labs.github.io/sl-vue-tree/demo/index

  1. Click Folder 2, hold Shift, click Folder 5
  2. Drag and drop the selection to Folder 1
  3. Item 3, Item 4, Folder 3 and Item 5 are duplicated into their parent folder

Piersen avatar Jul 19 '18 13:07 Piersen

Update: Happens also when you select a folder and its children individually

Piersen avatar Jul 19 '18 14:07 Piersen

Thanks for the report

holiber avatar Jul 19 '18 20:07 holiber

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.

nicknack23 avatar Aug 22 '19 18:08 nicknack23

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? :)

Fuzzyma avatar Jun 18 '20 08:06 Fuzzyma