@syncfusion/ej2-filemanager 27.2.2 → 27.2.3

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.
@@ -6669,7 +6669,7 @@ class ContextMenu {
6669
6669
  }
6670
6670
  }
6671
6671
  this.parent.pathId.push(parentKey[parentKey.length - 1]);
6672
- this.parent.navigationpaneModule.treeObj.selectedNodes = [this.parent.pathId[this.parent.pathId.length - 1]];
6672
+ this.parent.navigationpaneModule.treeObj.setProperties({ selectedNodes: [this.parent.pathId[this.parent.pathId.length - 1]] });
6673
6673
  }
6674
6674
  this.isMenuItemClicked = false;
6675
6675
  }
@@ -6730,7 +6730,7 @@ class ContextMenu {
6730
6730
  else if (closest(target, '#' + this.parent.element.id + TREE_ID)) {
6731
6731
  uid = closest(target, 'li').getAttribute('data-uid');
6732
6732
  if (!isNullOrUndefined(uid)) {
6733
- this.parent.navigationpaneModule.treeObj.selectedNodes = [uid];
6733
+ this.parent.navigationpaneModule.treeObj.setProperties({ selectedNodes: [uid] });
6734
6734
  }
6735
6735
  treeFolder = true;
6736
6736
  }
@@ -9891,7 +9891,7 @@ class NavigationPane {
9891
9891
  this.isNodeClickCalled = true;
9892
9892
  this.isSameNodeClicked = false;
9893
9893
  this.previousSelected = this.treeObj.selectedNodes;
9894
- this.treeObj.selectedNodes = [args.node.getAttribute('data-uid')];
9894
+ this.treeObj.setProperties({ selectedNodes: [args.node.getAttribute('data-uid')] });
9895
9895
  }
9896
9896
  }
9897
9897
  else if (this.previousSelected[0] !== args.node.getAttribute('data-uid')) {
@@ -9915,7 +9915,7 @@ class NavigationPane {
9915
9915
  read(this.parent, this.isPathDragged ? pasteEnd : pathChanged, this.parent.path);
9916
9916
  this.parent.visitedItem = node;
9917
9917
  this.isPathDragged = this.isRenameParent = this.isRightClick = false;
9918
- this.treeObj.selectedNodes = [node.getAttribute('data-uid')];
9918
+ this.treeObj.setProperties({ selectedNodes: [node.getAttribute('data-uid')] });
9919
9919
  }
9920
9920
  }
9921
9921
  onNodeSelected(args) {
@@ -9991,7 +9991,7 @@ class NavigationPane {
9991
9991
  if ((args.event.which === 3) && (args.node.getAttribute('data-uid') !== this.treeObj.selectedNodes[0])) {
9992
9992
  this.isRightClick = true;
9993
9993
  this.isNodeClickCalled = true;
9994
- this.treeObj.selectedNodes = [args.node.getAttribute('data-uid')];
9994
+ this.treeObj.setProperties({ selectedNodes: [args.node.getAttribute('data-uid')] });
9995
9995
  }
9996
9996
  else if (args.node.getAttribute('data-uid') === this.treeObj.selectedNodes[0] && this.parent.selectedItems.length !== 0) {
9997
9997
  this.parent.setProperties({ selectedItems: [] }, true);
@@ -10004,7 +10004,7 @@ class NavigationPane {
10004
10004
  }
10005
10005
  this.isSameNodeClicked = true;
10006
10006
  this.isNodeClickCalled = true;
10007
- this.treeObj.selectedNodes = [args.node.getAttribute('data-uid')];
10007
+ this.treeObj.setProperties({ selectedNodes: [args.node.getAttribute('data-uid')] });
10008
10008
  }
10009
10009
  }
10010
10010
  /* istanbul ignore next */
@@ -10054,7 +10054,7 @@ class NavigationPane {
10054
10054
  onOpenEnd(args) {
10055
10055
  const sleId = this.parent.pathId[this.parent.pathId.length - 1];
10056
10056
  this.treeObj.expandAll(this.treeObj.selectedNodes);
10057
- this.treeObj.selectedNodes = [sleId];
10057
+ this.treeObj.setProperties({ selectedNodes: [sleId] });
10058
10058
  this.expandNodeTarget = 'add';
10059
10059
  this.onPathChanged(args);
10060
10060
  }
@@ -10073,7 +10073,7 @@ class NavigationPane {
10073
10073
  this.onInit();
10074
10074
  const id = getValue('_fm_id', args.cwd);
10075
10075
  this.addChild(args.files, id, false);
10076
- this.treeObj.selectedNodes = [this.parent.pathId[this.parent.pathId.length - 1]];
10076
+ this.treeObj.setProperties({ selectedNodes: [this.parent.pathId[this.parent.pathId.length - 1]] });
10077
10077
  }
10078
10078
  onCreateEnd(args) {
10079
10079
  this.updateTree(args);
@@ -10191,7 +10191,7 @@ class NavigationPane {
10191
10191
  this.doDownload();
10192
10192
  }
10193
10193
  onSelectionChanged(e) {
10194
- this.treeObj.selectedNodes = [e.selectedNode];
10194
+ this.treeObj.setProperties({ selectedNodes: [e.selectedNode] });
10195
10195
  }
10196
10196
  onClearPathInit(e) {
10197
10197
  this.removeChildNodes(e.selectedNode);
@@ -10935,7 +10935,7 @@ class DetailsView {
10935
10935
  this.element.querySelector('.e-content').scrollTop === 0))) {
10936
10936
  this.selectRecords(this.parent.selectedItems);
10937
10937
  }
10938
- if (this.isPasteOperation === true) {
10938
+ if (this.isPasteOperation === true && (!isNullOrUndefined(this.gridObj.getDataRows()) && this.gridObj.getDataRows().length > 0)) {
10939
10939
  if (!this.isColumnRefresh) {
10940
10940
  this.selectRecords(this.parent.pasteNodes);
10941
10941
  this.isPasteOperation = false;