-
Notifications
You must be signed in to change notification settings - Fork 438
Error thrown on drag start #71
Comments
This seem interestig... Also:
|
I have updated as per your suggestion and the sorting is still wonky. I will come up with a jfiddle in a few. Thanks. |
I just pushed an extra commit #74 to test if placeholder.element is a function. |
I'm actually not getting the placeholder error any more. What happens now, is that as I drag images from right to left, after a while, when I drop the image, they all get re-ordered and end up in the wrong positions. I'm going to work on the fiddle today. Thanks. |
Hey Thodoris, I have created a jsfiddle that shows the re-order issue. The sortable being used is from: cdnjs.cloudflare.com/ajax/libs/angular-ui/0.4.0/angular-ui.min.js. I'm guessing that this is the incorrect version. I'm not sure how to use the sortable.js for angular 1.2 in the jsfiddle, although I do use that one in my code. I thought maybe you could adjust the jsfiddle appropriately. Let me know what you find. Thanks! |
There seems to be an issue with the placeholder detection that we use and jquery 1.9.x. |
Here is a fiddle that seems to work with jquery ui 1.9.x. |
This seems to be working now. I will keep my eye on it. Thanks! |
Hi guys, I've been struggling with trying to come up with a sortable implementation that works with ng-repeat. The re-ordering of indexes after a drag/drop never seems to be right. I've just tried your solution, which I thought was promising, however, as soon as I attempt to drag an element I get this error:
TypeError: 'undefined' is not a function (evaluating 'placeholder.element().attr('class')')
I don't have placeholder set in the options, however placeholder.element() is valid.
What am I doing wrong?
I am using angular v1.2.0-rc.3, jQuery UI v1.9.2, and jQuery v1.9.1
The text was updated successfully, but these errors were encountered: