@syncfusion/ej2-lists 28.1.33 → 28.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4285,6 +4285,7 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
4285
4285
  var isPlaceHolderPresent = _this.isPlaceHolderPresent(dropInst);
4286
4286
  if (isPlaceHolderPresent) {
4287
4287
  var curIdx_1 = _this.getIndex(dropInst.placeHolderElement, dropInst);
4288
+ prevIdx = _this === dropInst && (prevIdx - curIdx_1) >= 1 ? prevIdx - 1 : prevIdx;
4288
4289
  var args = {
4289
4290
  previousIndex: prevIdx, currentIndex: curIdx_1, target: e.target, droppedElement: _this.target,
4290
4291
  helper: e.helper, cancel: false, handled: false
@@ -4300,7 +4301,7 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
4300
4301
  }
4301
4302
  dropInst.element.insertBefore(_this.target, dropInst.placeHolderElement);
4302
4303
  var curIdx_2 = _this.getIndex(_this.target, dropInst);
4303
- prevIdx = _this === dropInst && (prevIdx - curIdx_2) > 1 ? prevIdx - 1 : prevIdx;
4304
+ prevIdx = _this === dropInst && (prevIdx - curIdx_2) >= 1 ? prevIdx - 1 : prevIdx;
4304
4305
  _this.trigger('drop', {
4305
4306
  event: e.event, element: dropInst.element, previousIndex: prevIdx, currentIndex: curIdx_2,
4306
4307
  target: e.target, helper: e.helper, droppedElement: _this.target, scopeName: _this.scope, handled: handled