Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Issue with dnd-allowed-types #493

Open
ZtheLeader opened this issue Sep 3, 2018 · 1 comment
Open

Issue with dnd-allowed-types #493

ZtheLeader opened this issue Sep 3, 2018 · 1 comment

Comments

@ZtheLeader
Copy link

ZtheLeader commented Sep 3, 2018

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?

@ppaul
Copy link

ppaul commented Nov 20, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants