@syncfusion/ej2-filemanager 23.1.36 → 23.1.39

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
  }
@@ -4007,7 +4007,7 @@ class LargeIconsView {
4007
4007
  }
4008
4008
  }
4009
4009
  createDragObj() {
4010
- if (!this.parent.isMobile && this.listObj) {
4010
+ if (this.listObj) {
4011
4011
  if (this.parent.allowDragAndDrop) {
4012
4012
  if (this.dragObj) {
4013
4013
  this.dragObj.destroy();
@@ -8819,8 +8819,12 @@ class NavigationPane {
8819
8819
  }
8820
8820
  length++;
8821
8821
  }
8822
- // eslint-disable-next-line
8823
- this.treeObj.addNodes(directories, target, null, prevent);
8822
+ const element = select('[data-uid="' + target + '"]', this.treeObj.element);
8823
+ const childElements = select('ul', element);
8824
+ if (isNullOrUndefined(childElements)) {
8825
+ // eslint-disable-next-line
8826
+ this.treeObj.addNodes(directories, target, null, prevent);
8827
+ }
8824
8828
  }
8825
8829
  }
8826
8830
  // Node Selecting event handler
@@ -10543,7 +10547,7 @@ class DetailsView {
10543
10547
  }
10544
10548
  }
10545
10549
  createDragObj() {
10546
- if (!this.parent.isMobile && this.gridObj) {
10550
+ if (this.gridObj) {
10547
10551
  if (this.parent.allowDragAndDrop) {
10548
10552
  if (this.dragObj) {
10549
10553
  this.dragObj.destroy();