{"action":"closed","issue":{"url":"https://api.github.com/repos/a5hik/ng-sortable/issues/232","labels_url":"https://api.github.com/repos/a5hik/ng-sortable/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/a5hik/ng-sortable/issues/232/comments","events_url":"https://api.github.com/repos/a5hik/ng-sortable/issues/232/events","html_url":"https://github.com/a5hik/ng-sortable/issues/232","id":111159798,"number":232,"title":"When ng-repeat filtered results to only 1 item, the drag drop did not pick the correct record but the first in list","user":{"login":"ahmadalibaloch","id":1916642,"avatar_url":"https://avatars.githubusercontent.com/u/1916642?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmadalibaloch","html_url":"https://github.com/ahmadalibaloch","followers_url":"https://api.github.com/users/ahmadalibaloch/followers","following_url":"https://api.github.com/users/ahmadalibaloch/following{/other_user}","gists_url":"https://api.github.com/users/ahmadalibaloch/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmadalibaloch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmadalibaloch/subscriptions","organizations_url":"https://api.github.com/users/ahmadalibaloch/orgs","repos_url":"https://api.github.com/users/ahmadalibaloch/repos","events_url":"https://api.github.com/users/ahmadalibaloch/events{/privacy}","received_events_url":"https://api.github.com/users/ahmadalibaloch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-13T11:22:41Z","updated_at":"2015-11-22T11:32:58Z","closed_at":"2015-11-22T11:32:58Z","body":"    Search by Outward Code: <input type=\"text\" ng-model=\"search.Name\">\r\n    Search1 by Outward Code: <input type=\"text\" ng-model=\"search1.Name\">\r\n    <div id=\"sortable-container\"><div class=\"sortable-row\" as-sortable=\"sortableOptions\" ng-model=\"outWardCodes\" style=\"padding:30px;margin:10px;border:1px solid red;\">\r\n        <div ng-repeat=\"item in outWardCodes | filter:search | limitTo:5\" as-sortable-item>\r\n            <div as-sortable-item-handle>{{item.Name}}</div>\r\n        </div>\r\n    </div>\r\n    <hr />\r\n    <div class=\"sortable-row\" as-sortable=\"sortableOptions\" ng-model=\"outWardCodes1\" style=\"padding:30px;margin:10px;border:1px solid red;\">\r\n        <div ng-repeat=\"item in outWardCodes1 | filter:search1 | limitTo:15\" as-sortable-item>\r\n            <div as-sortable-item-handle>{{item.Name}}</div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\nNow when I filter the results and only one item is in list and its like at the index of 12 then visible it will drag and drop that 12th item but after I leave the mouse the first in list at index one is actual replaced to the target and not the 12th.\r\n\r\nSome time it gives strange results with ng-repeat filter."}}