@syncfusion/ej2-filemanager 23.1.38 → 23.1.40

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.
@@ -2294,7 +2294,7 @@ function rename(parent, path, itemNewName) {
2294
2294
  }
2295
2295
  // eslint-disable-next-line
2296
2296
  const data = {
2297
- action: 'rename', path: path, name: name, newName: newName, data: parent.itemData
2297
+ action: 'rename', path: path, name: name, newName: newName, data: parent.itemData, showFileExtension: parent.showFileExtension
2298
2298
  };
2299
2299
  createAjax(parent, data, renameSuccess, path);
2300
2300
  }
@@ -2470,7 +2470,7 @@ parent, data, fn, event, operation, targetPath) {
2470
2470
  setValue('location', location, result.details);
2471
2471
  }
2472
2472
  fn(parent, result, event, operation, targetPath);
2473
- if (!isNullOrUndefined(result.files) && (event === 'path-changed' || event === 'finalize-end' || event === 'open-end')) {
2473
+ if (!isNullOrUndefined(result.files) && (event === 'path-changed' || event === 'finalize-end' || event === 'open-end' || event === 'drop-path')) {
2474
2474
  parent.notify(searchTextChange, result);
2475
2475
  }
2476
2476
  if (typeof getValue('onSuccess', beforeSendArgs.ajaxSettings) === 'function') {
@@ -2638,15 +2638,15 @@ function renameSuccess(parent, result, path) {
2638
2638
  const args = { action: 'rename', result: result };
2639
2639
  parent.trigger('success', args);
2640
2640
  parent.renamedItem = Array.isArray(result.files) ? result.files[0] : result.files;
2641
- if (getValue('filterPath', parent.renamedItem) === getValue('filterPath', parent.itemData[0]) && parent.pathNames.length > 1) {
2642
- parent.pathNames[parent.pathNames.length - 1] = parent.renameText;
2643
- }
2644
2641
  if (parent.activeModule === 'navigationpane') {
2645
2642
  parent.pathId.pop();
2646
2643
  parent.itemData = [getValue(parent.pathId[parent.pathId.length - 1], parent.feParent)];
2647
2644
  read(parent, renameEndParent, getValue('filterPath', parent.renamedItem).replace(/\\/g, '/'));
2648
2645
  parent.itemData[0] = parent.renamedItem;
2649
2646
  read(parent, pathChanged, parent.path === '/' ? parent.path : getValue('filterPath', parent.renamedItem).replace(/\\/g, '/') + parent.renamedItem.name + '/');
2647
+ if (getValue('filterPath', parent.renamedItem) === getValue('filterPath', parent.itemData[0]) && parent.pathNames.length > 1) {
2648
+ parent.pathNames[parent.pathNames.length - 1] = parent.renameText;
2649
+ }
2650
2650
  }
2651
2651
  else {
2652
2652
  parent.itemData = [getPathObject(parent)];