marceljuenemann / angular-drag-and-drop-lists

Angular directives for sorting nested lists using the HTML5 Drag & Drop API
MIT License
2.16k stars 713 forks source link

Cannot disable drag while keeping drop enabled #383

Open mustansirhussain opened 7 years ago

mustansirhussain commented 7 years ago

Using dnd-disable-if, it disables both "drag" and "drop" operations. Assume that I have two lists, where "List A" is the master and "List B" is the recipient.

I want to setup "List A" so that it can copy elements to other lists but does not accept any elements. i.e disable drop. While, I want "List B" to only accept elements from other lists. i.e. disable drag.

With current available dnd-effect-allowed or dnd-disable-if options, this does not seem possible to me. Am I missing something that I should try to achieve this successfully?