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

Commit c434ce2

Browse files
author
AngularUI (via TravisCI)
committed
Travis commit : build 133
1 parent e5d0d0e commit c434ce2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

sortable.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ angular.module('ui.sortable', []).value('uiSortableConfig', {}).directive('uiSor
4141
};
4242
callbacks.receive = function (e, ui) {
4343
ui.item.sortable.relocate = true;
44-
ngModel.$modelValue.splice(ui.item.index(), 0, ui.item.sortable.moved);
44+
if ('moved' in ui.item.sortable) {
45+
ngModel.$modelValue.splice(ui.item.index(), 0, ui.item.sortable.moved);
46+
}
4547
};
4648
callbacks.remove = function (e, ui) {
4749
if (ngModel.$modelValue.length === 1) {

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)