Vue.draggable: Can't drag to empty drag area when using transistion group, even if min height is set

Created on 15 Dec 2016  路  5Comments  路  Source: SortableJS/Vue.Draggable

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.

Most helpful comment

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;
}

All 5 comments

@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;
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

fedenko picture fedenko  路  3Comments

AlexandreBonneau picture AlexandreBonneau  路  3Comments

steffanhalv picture steffanhalv  路  3Comments

tomdong picture tomdong  路  3Comments

parthibeyond picture parthibeyond  路  3Comments