-
Notifications
You must be signed in to change notification settings - Fork 441
Wrong items dropped in connected lists #139
Comments
You should move the repeater of the inner ol to the inner li. Also from the inner li you might better have to remove the id attribute, since I think its just a text and not binded to the repeaters item. |
Thanks, moving ng-repeat to the inner li fixed the issue. I can see why it appeared to almost work and was incorrect. It may require some additional documentation in the readme to explain where jquery's ().sortable is assigned in relation to the ui-sortable element and the repeat. It would avoid a beginner's coding errors, like mine. Ok got the clone from #138. If I could make a suggestion, the code for the "no drop" and the clone should be built into directive. |
By the next version, I would probably re-validate the I'm going to update this example as soon as the next version is ready. Also, should this ticket be considered resolved? |
Thanks. Close the ticket :) I'd like to keep the dialogue on your directive moving. Can you join the angularjs google group ? I'm trying to figure out generalized DnD/cut/paste framework to tie into jquery. Sent from my iPhone
|
I just found an jquery-ui issue that has a drop-clone example. It seems that jquery-ui does not provide a simple way to do this. In my opinion restoring the ng-model looks less like the trickery magic the jquery-ui example shows. |
Jquery provides a good tool set to manipulate the html dom. However, it I like the new version of the example.. its much simpler to implement an email garym at oedata dot com On Tue, Mar 4, 2014 at 2:08 PM, Thodoris Greasidis <[email protected]
|
Since the drop-clone example mentioned above has changed, just for future reference, I'm adding this fiddle to demonstrate what |
Dragged items land in the wrong place on target, usually Position 1 (index 0). Drag the element where the first drag was 'supposed' to land, the first element is dragged.
Sometimes the item from the wrong list is dropped.
See: http://jsfiddle.net/XS3dW/
Also clone does not work
The text was updated successfully, but these errors were encountered: