Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 017fbd3

Browse files
author
AngularUI (via TravisCI)
committed
Travis commit : build 538
1 parent 3168bcc commit 017fbd3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-ui-sortable",
3-
"version": "0.17.1",
3+
"version": "0.17.2",
44
"main": ["./sortable.js"],
55
"dependencies": {
66
"angular": ">=1.2.x",

sortable.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* angular-ui-sortable - This directive allows you to jQueryUI Sortable.
3-
* @version v0.17.1 - 2017-04-15
3+
* @version v0.17.2 - 2017-08-17
44
* @link http://angular-ui.github.com
55
* @license MIT
66
*/
@@ -357,7 +357,7 @@ angular.module('ui.sortable', [])
357357
// the value will be overwritten with the old value
358358
if (!ui.item.sortable.received) {
359359
ui.item.sortable.dropindex = getItemIndex(ui.item);
360-
var droptarget = ui.item.closest('[ui-sortable], [data-ui-sortable], [x-ui-sortable]');
360+
var droptarget = ui.item.parent().closest('[ui-sortable], [data-ui-sortable], [x-ui-sortable]');
361361
ui.item.sortable.droptarget = droptarget;
362362
ui.item.sortable.droptargetList = ui.item.parent();
363363

sortable.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)