@syncfusion/ej2-navigations 20.2.38 → 20.2.39

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.
@@ -9018,7 +9018,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9018
9018
  }
9019
9019
  }
9020
9020
  else {
9021
- this.dragItem.parentNode.insertBefore(dropItem, this.dragItem);
9021
+ this.dragItem.parentNode.insertBefore(this.dragItem, dropItem.nextElementSibling);
9022
9022
  }
9023
9023
  }
9024
9024
  };
@@ -9199,8 +9199,8 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9199
9199
  if (_this.allowDragAndDrop && (index !== Array.prototype.indexOf.call(_this.itemIndexArray, trg.id))) {
9200
9200
  index = Array.prototype.indexOf.call(_this.itemIndexArray, trg.id);
9201
9201
  }
9202
- _this.items.splice(index, 1);
9203
9202
  var targetEleIndex = _this.itemIndexArray.indexOf(trg.id);
9203
+ _this.items.splice(targetEleIndex, 1);
9204
9204
  _this.itemIndexArray.splice(targetEleIndex, 1);
9205
9205
  _this.refreshActiveBorder();
9206
9206
  var cntTrg = select('#' + CLS_CONTENT$1 + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_CONTENT$1, _this.element));