Vue.Draggable icon indicating copy to clipboard operation
Vue.Draggable copied to clipboard

How to use dragClass?

Open daiyuanhao opened this issue 4 years ago • 1 comments

the dragged item have gradient transparency, how to remove it

daiyuanhao avatar Jan 07 '21 07:01 daiyuanhao

I'm having the same issues, both cloneEl or dragEl in dragstart or dragend doesn't get the dragClass applied, also trying to add a class yourself within dragstart like this:

onDrag(evt) {
  evt.item.classList.add('dragging');
}

does not work either, it just applies it to the ghost element, how can you get the item being actively dragged?

Edit: It doesn't even get the default class (which should be sortable-drag, so it's more likely a problem with sortable.js instead

lucasreppewelander avatar Dec 23 '21 10:12 lucasreppewelander