@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.
@@ -8740,7 +8740,7 @@ let Tab = class Tab extends Component {
8740
8740
  }
8741
8741
  }
8742
8742
  else {
8743
- this.dragItem.parentNode.insertBefore(dropItem, this.dragItem);
8743
+ this.dragItem.parentNode.insertBefore(this.dragItem, dropItem.nextElementSibling);
8744
8744
  }
8745
8745
  }
8746
8746
  }
@@ -8917,8 +8917,8 @@ let Tab = class Tab extends Component {
8917
8917
  if (this.allowDragAndDrop && (index !== Array.prototype.indexOf.call(this.itemIndexArray, trg.id))) {
8918
8918
  index = Array.prototype.indexOf.call(this.itemIndexArray, trg.id);
8919
8919
  }
8920
- this.items.splice(index, 1);
8921
8920
  const targetEleIndex = this.itemIndexArray.indexOf(trg.id);
8921
+ this.items.splice(targetEleIndex, 1);
8922
8922
  this.itemIndexArray.splice(targetEleIndex, 1);
8923
8923
  this.refreshActiveBorder();
8924
8924
  const cntTrg = select('#' + CLS_CONTENT$1 + this.tabId + '_' + this.extIndex(trg.id), select('.' + CLS_CONTENT$1, this.element));