angular-drag-and-drop-lists icon indicating copy to clipboard operation
angular-drag-and-drop-lists copied to clipboard

I want to delete item when click on X button without drag to Trash can.Help me!

Open TienTungs295 opened this issue 7 years ago • 2 comments

http://prntscr.com/i0lw7i

TienTungs295 avatar Jan 15 '18 08:01 TienTungs295

Hi there. I had this same issue and I found a work around. This might break nested elements as I haven't tried. If your structure is only one level deep you can comment out the click handler in the dndDraggable directive.

  // element.on('click', function(event) {
  //   if (!attr.dndSelected) return;

  //   event = event.originalEvent || event;
  //   scope.$apply(function() {
  //     $parse(attr.dndSelected)(scope, {event: event});
  //   });

    // Prevent triggering dndSelected in parent elements.
    // event.stopPropagation();
  // });

BusbyActual avatar Mar 28 '18 23:03 BusbyActual

Did you ever figure this out TienTungs295?

greekenour avatar Mar 11 '19 20:03 greekenour