@syncfusion/ej2-filemanager 20.4.53 → 20.4.54

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.
@@ -1469,6 +1469,7 @@ function sortbyClickHandler(parent, args) {
1469
1469
  }
1470
1470
  else {
1471
1471
  parent.notify(sortColumn, { module: 'detailsview' });
1472
+ parent.isSortByClicked = false;
1472
1473
  }
1473
1474
  }
1474
1475
  if (parent.view === 'LargeIcons') {
@@ -8805,6 +8806,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
8805
8806
  }
8806
8807
  this.parent.searchedItems = [];
8807
8808
  if (!args.isInteracted && !this.isRightClick && !this.isPathDragged && !this.isRenameParent) {
8809
+ this.parent.pathId = getPathId(args.node);
8808
8810
  return;
8809
8811
  }
8810
8812
  this.activeNode = args.node;
@@ -8898,8 +8900,9 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
8898
8900
  if (isNullOrUndefined(currFiles)) {
8899
8901
  setValue(this.parent.pathId[this.parent.pathId.length - 1], args.files, this.parent.feFiles);
8900
8902
  }
8901
- if (this.parent.uploadObj.directoryUpload)
8903
+ if (this.parent.uploadObj.directoryUpload && !(this.parent.hasId)) {
8902
8904
  this.updateTree(args);
8905
+ }
8903
8906
  };
8904
8907
  NavigationPane.prototype.updateTree = function (args) {
8905
8908
  if (this.treeObj) {
@@ -9142,7 +9145,8 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
9142
9145
  }
9143
9146
  }
9144
9147
  else {
9145
- this.treeObj.selectedNodes = [getValue('_fm_id', resultObj)];
9148
+ var selectedNode = this.treeObj.getTreeData().filter(function (obj) { return obj.name === resultObj.name; })[0];
9149
+ this.treeObj.selectedNodes = [getValue('_fm_id', selectedNode)];
9146
9150
  this.treeObj.dataBind();
9147
9151
  }
9148
9152
  };
@@ -9855,6 +9859,12 @@ var DetailsView = /** @__PURE__ @class */ (function () {
9855
9859
  if (nodes.indexOf(node) !== -1) {
9856
9860
  sRecords.push(i);
9857
9861
  }
9862
+ else if (!this.parent.showFileExtension && node.includes('.')) {
9863
+ var Str2 = node.split('.').slice(0, -1).join('.');
9864
+ if (nodes.indexOf(Str2) !== -1) {
9865
+ sRecords.push(i);
9866
+ }
9867
+ }
9858
9868
  }
9859
9869
  if (sRecords.length !== 0) {
9860
9870
  this.gridObj.selectRows(sRecords);