EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: tomb on September 15, 2014, 10:05:58 AM



Title: Droppable exception
Post by: tomb on September 15, 2014, 10:05:58 AM
I'm trying to get some sort of a "tree" with cascaded divs to work.  Ultimately, I want to be able to re-order the divs.  Right now I keep getting an exception whenever I try to drag a subitem, and I can't quite figure out, why.  I am guessing is that I have a draggable within another draggable object, and that's kind of what I want, but I suspect it is the cause of the issue as it only happens when trying to drag these items.

http://jsfiddle.net/jkgpsz03/2/

I appreciate any help or hints of what I might be doing wrong.


Title: Re: Droppable exception
Post by: stworthy on September 15, 2014, 08:18:42 PM
Please try the updated example http://jsfiddle.net/jkgpsz03/3/


Title: Re: Droppable exception
Post by: tomb on September 17, 2014, 07:57:39 AM
Thanks! So the problem was that the proxy had a draggable/droppable object attached to it, which is because it got cloned.  I changed my code to create a custom proxy that is the same as the element being dragged, except that it doesn't create a draggable/droppable object on the proxy.  It works now, thanks!