angular-drag-and-drop-lists
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!
http://prntscr.com/i0lw7i
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();
// });
Did you ever figure this out TienTungs295?