Fiddle: https://jsfiddle.net/32ao2rpm/29/
To reproduce this bug, drag every item from list 1 to list 2.
When list 1 doesn't contain items anymore, try to put back an item from list 2 to list 1.
You will see that this doesn't work while using a transition group.
@bram209 see https://jsfiddle.net/dede89/0jc4fp34/ for solution:
I used a div tag for component transition and a min-heigth value to ensure a minimal dropable zone even if there is no element. Note that in this case, animation is not very satisfactory, you can try using sortable built-in animation.
Thanks for the help!
It is appreciated
@David-Desmaisons Sorry to disturb you with this,
But how would I enable Vue's transition effect only when a list item is added or removed?
So I want to use Sortable's built-in animation for dragging items without the transition effect of vue.js,
but use the transition effect when im dynamically adding and removing items to/from the list.
Hello @bram209 , I understand the need and it is not currently supported. Could you create a separate issue for this enhancement?
I can't drag item into empty ul list, but when i set the min-height for this div, it works.
.list__empty > div{
min-height: 50px;
border:dashed #ccc 3px;
}
Most helpful comment
I can't drag item into empty ul list, but when i set the min-height for this div, it works.