how to disable placeholder in sortable?
Hi,
I'd like to disable placeholder in a particular list. I want this
"list" to contain only a single item at a time, i.e. when I drag new
item on it, the previous one gets deleted. This should serve as e.g.
as a trash with undo functionality.
Thus, I want to disable any shofting of the current item in this list
(due to placeholder above or below). Just want to drop the new one
over the old one to let it disappear.
I tried various css adjustments, as well as forcePlaceholderSize
options etc., but no success.
I also tried using a droppable instead, connected to sortable, but it
was kinda tricky - I had to dynamically ad 'draggable' property to
sortable items, which then disappeared when moved back from droppable
to sortable, etc. So having the trash as another sortable seems a bit
easier to me.
Thanks for any guidance
Josef