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

Nested items always allowed #16

Closed
ghost opened this issue Oct 2, 2014 · 2 comments
Closed

Nested items always allowed #16

ghost opened this issue Oct 2, 2014 · 2 comments
Milestone

Comments

@ghost
Copy link

ghost commented Oct 2, 2014

I'm having problems with nested items. In my example they are always allowed. Because of the dnd-allowed-types on the child dnd-list, a block element shouldn't be added to a layout element. It happens anyway though, because of the parent dnd-allowed-types interference?

Example:
http://codepen.io/baaaaas/pen/fcdlA?editors=101

I tried:

  • Adding pointer-events:none on the parent-list while dragging over child-list
  • Empty value of dnd-allowed-types on parent-list while dragging over child-list

Dirty fix in directive while adding dropped element:
if(element.hasClass("blocks") && transferredObject.type == "layout"){
gridArray.splice(placeholderIndex, 0, transferredObject);
} else {
targetArray.splice(placeholderIndex, 0, transferredObject);
}

Please help, I don't want to use the dirty fix.

@rsplithof
Copy link

I have the same problem. I want to use the nested-lists with allowed types.

@jblaise
Copy link

jblaise commented Oct 7, 2014

Got the same issue

@marceljuenemann marceljuenemann added this to the 1.2.0 milestone Nov 29, 2014
marceljuenemann added a commit that referenced this issue Nov 30, 2014
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

3 participants