@syncfusion/ej2-filemanager 20.2.39 → 20.2.43

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.
@@ -1597,7 +1597,7 @@ function doPasteUpdate(parent, operation, result) {
1597
1597
  * @private
1598
1598
  */
1599
1599
  function readDropPath(parent) {
1600
- const pathId = getValue('_fm_id', parent.dropData);
1600
+ let pathId = getValue('_fm_id', parent.dropData);
1601
1601
  parent.expandedId = pathId;
1602
1602
  parent.itemData = [parent.dropData];
1603
1603
  if (parent.isPathDrag) {
@@ -1605,7 +1605,12 @@ function readDropPath(parent) {
1605
1605
  }
1606
1606
  else {
1607
1607
  if (parent.navigationpaneModule) {
1608
- const node = select('[data-uid="' + pathId + '"]', parent.navigationpaneModule.treeObj.element);
1608
+ let node = select('[data-uid="' + pathId + '"]', parent.navigationpaneModule.treeObj.element);
1609
+ if (!node) {
1610
+ let liElement = document.querySelector('[data-id = "' + getValue('id', parent.dropData) + '"]');
1611
+ pathId = liElement.getAttribute("data-uid");
1612
+ node = select('[data-uid="' + pathId + '"]', parent.navigationpaneModule.treeObj.element);
1613
+ }
1609
1614
  updatePath(node, parent.dropData, parent);
1610
1615
  }
1611
1616
  read(parent, dropPath, parent.dropPath);
@@ -5774,7 +5779,7 @@ class ContextMenu$2 {
5774
5779
  data = this.parent.detailsviewModule.gridObj.getRowObjectFromUID(uid).data;
5775
5780
  if (isNullOrUndefined(this.targetElement.getAttribute('aria-selected'))) {
5776
5781
  /* istanbul ignore next */
5777
- this.parent.detailsviewModule.gridObj.selectRows([parseInt(this.targetElement.getAttribute('aria-rowindex'), 10)]);
5782
+ this.parent.detailsviewModule.gridObj.selectRows([parseInt(this.targetElement.getAttribute('data-rowindex'), 10)]);
5778
5783
  }
5779
5784
  selected = true;
5780
5785
  /* istanbul ignore next */
@@ -10139,7 +10144,7 @@ class DetailsView {
10139
10144
  }
10140
10145
  getFocusedItemIndex() {
10141
10146
  return (!isNullOrUndefined(this.getFocusedItem())) ?
10142
- parseInt(this.getFocusedItem().getAttribute('aria-rowindex'), 10) : null;
10147
+ parseInt(this.getFocusedItem().getAttribute('data-rowindex'), 10) : null;
10143
10148
  }
10144
10149
  /* istanbul ignore next */
10145
10150
  // eslint:disable-next-line