How to get the item dragged always over others?
EfkanKnz opened this issue · 2 comments
EfkanKnz commented
Hi,
While dragging, the item dragged is under some items and over others (visually preview).
Is it possible to get the item dragged to be over others?
Expected behavior: all items z-index: 1
/ item dragged: z-index: 2
The item dragged should always be over others, no matter the size.
Thanks
indriq commented
z-index should not be hardwired into styles in the first place :)
amcardle98 commented
i fixed this with
this.options = {
...
draggable: {
enabled: true,
start: (item, dragRef, event: MouseEvent) => {
dragRef.bringToFront(1);
}
}
}