Browse Source

Adjust index in Sorter move

pull/4144/head
Artur Arseniev 4 years ago
parent
commit
ffa47e74f3
  1. 3
      src/utils/Sorter.js

3
src/utils/Sorter.js

@ -1075,6 +1075,9 @@ export default Backbone.View.extend({
if (canRemove) {
modelToDrop = srcModel.collection.remove(srcModel, { temporary: true });
if (sameCollection && index > srcIndex) {
opts.at = index - 1;
}
}
} else {
modelToDrop = isFunction(dropContent) ? dropContent() : dropContent;

Loading…
Cancel
Save