You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
The code below is a ui-sortable list that uses ng-repeat, using jQuery 2.0.
The first attempt to drag and drop an item in the list will result in selecting text in the list, instead of moving the element. The second attempt works as expected, as do all attempts after that. When the page is refreshed, we're in a broken state again.
With jQuery 1.x, everything is fine.
If the ng-repeat is removed from the situation, and a static list is used instead, everything is fine.
Hard to say if this is an issue with jQuery, Angular, or Angular-ui, but the narrowed-down code below is a step toward answering that question.
<!doctype html><htmllang="en" ng-app="myApp"><body><divng-controller="MyCtrl1"><ului-sortableng-model="test"><ling-repeat="t in test">
{{t.name}}
</li></ul></div><!-- jQueryUI is required by AngularUI --><scriptsrc="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script><scriptsrc="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script><scriptsrc="lib/angular/angular.js"></script><scriptsrc="lib/angular-ui/angular-ui.js"></script><script>