tags:

views:

78

answers:

0

Hi,

I am trying to work on a simple example of dragging a panel(lets say B) and dropping it within a panel (A) and then dropping another panel (C) within panel B. I am achieving this by overriding the methods in class DropZone.js but when I am dropping panel C within panel B the onNodeDrop method in DropZone is being called twice. I was able to figure out that onNodeDrop is being called for all the panels configured to be drop zones and are the up the parent hierarchy. I am not sure but I think this is event bubbling and I tried to use stopPropagation, stopEvent but nothing was able to stop this behavior. Any thoughts would be greatly appreciated.

Thank you manu sharma