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

Issue with dnd-allowed-types

Open ZtheLeader opened this issue 6 years ago • 1 comments

I'm having a group structure where I have groups and questions. I can drag questions in group and drag groups and questions independently as well (for sorting). I DON'T want a group to be added in another group. (Groups should only contain questions.) I'm using dnd-allowed-types. I give it all the types which a groups should accept as:

 dnd-allowed-types = ['all-question-type-values']

It works fine expect it now disables the group now i.e now groups don't accept incoming groups but now I can't drag them elsewhere for sorting either.

I've gone through documentation extensively but cannot find the solution yet. Anybody can help me on that?

ZtheLeader avatar Sep 03 '18 08:09 ZtheLeader

since it's no longer maintained, you can do changes on your local file like this:

dndDragTypeWorkaround.dragType = attr.dndType && attr.dndType.toLowerCase();

instead of using angular.scope.$eval, which only works with an array, but returns undefined for a string property

ppaul avatar Nov 20 '19 10:11 ppaul