@syncfusion/ej2-filemanager 20.4.48 → 20.4.53

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.
@@ -8582,6 +8582,8 @@ class NavigationPane {
8582
8582
  const nodeData = this.getTreeData(getValue('id', args.nodeData));
8583
8583
  const eventArgs = { cancel: false, fileDetails: nodeData[0], module: 'NavigationPane' };
8584
8584
  this.parent.trigger('fileOpen', eventArgs);
8585
+ const selecEventArgs = { action: args.action, fileDetails: nodeData[0], isInteracted: args.isInteracted };
8586
+ this.parent.trigger('fileSelect', selecEventArgs);
8585
8587
  args.cancel = eventArgs.cancel;
8586
8588
  if (args.cancel) {
8587
8589
  this.restrictSelecting = this.isNodeClickCalled ? this.previousSelected[0] !== args.node.getAttribute('data-uid') : false;
@@ -8626,6 +8628,10 @@ class NavigationPane {
8626
8628
  if (!this.isRightClick) {
8627
8629
  updatePath(args.node, this.parent.itemData[0], this.parent);
8628
8630
  }
8631
+ else {
8632
+ this.parent.pathId = getPathId(args.node);
8633
+ this.parent.visitedItem = args.node;
8634
+ }
8629
8635
  if (previousPath !== this.parent.path) {
8630
8636
  this.expandNodeTarget = null;
8631
8637
  if (args.node.querySelector('.' + ICONS) && args.node.querySelector('.' + LIST_ITEM) === null) {
@@ -8810,7 +8816,6 @@ class NavigationPane {
8810
8816
  }
8811
8817
  }
8812
8818
  if (resultData.length > 0) {
8813
- this.isRenameParent = true;
8814
8819
  const id = getValue(this.treeObj.fields.id, resultData[0]);
8815
8820
  this.treeObj.selectedNodes = [id];
8816
8821
  this.treeObj.dataBind();