Closed fmjnax closed 7 years ago
It would be nice if the draggable host property was configurable instead of always being set to 'true'. Would you consider the following instead of the current 'Host' binding defined in the @directive annotation: @HostBinding('draggable') @Input() isDraggable: boolean;
@fmjnax there is no [draggable]=false
input to the draggable. Instead there is a [dragEnabled]
property that must be set.
@boldwade thanks for your input. I've made that change.
I have a draggable div (that is actually images)
They can be dropped on to any of 9 available div's (slots), which populates the droppedItems list (and uses a pipe to filter the object based on the slot
Once an item is dropped onto a slot, I don't want it to be draggable again. Once it's there, it needs to stay there. Reading the documentation, I thought I needed to set the [draggable] to false, so I did this:
However, the image is still being allowed to be dragged and inspecting the elements, the draggable tag is still = true, even though I am explicitly setting it to false on every element in the block.
Is this an issue, or am I doing something wrong?