@syncfusion/ej2-filemanager 20.2.38 → 20.2.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.
@@ -3385,11 +3385,18 @@ function getOptions(parent, text, e, details, replaceItems) {
3385
3385
  ];
3386
3386
  break;
3387
3387
  case 'MultipleFileDetails':
3388
+ let index;
3388
3389
  options.dialogName = 'File Details';
3389
- strArr = details.name.split(',').map((val) => {
3390
- const index = val.indexOf('.') + 1;
3391
- return (index === 0) ? 'Folder' : val.substr(index).replace(' ', '');
3390
+ strArr = parent.itemData.map((val) => {
3391
+ index = val.name.indexOf('.') + 1;
3392
+ return (index === 0 && (!val.isFile)) ? 'Folder' : ((index !== 0) ? val.name.substr(index).replace(' ', '') : 'undetermined');
3392
3393
  });
3394
+ if (strArr[0] == undefined) {
3395
+ strArr = details.name.split(',').map((val) => {
3396
+ index = val.indexOf('.') + 1;
3397
+ return (index === 0) ? 'Folder' : val.substr(index).replace(' ', '');
3398
+ });
3399
+ }
3393
3400
  fileType$$1 = strArr.every((val, i, arr) => val === arr[0]) ?
3394
3401
  ((strArr[0] === 'Folder') ? 'Folder' : strArr[0].toLocaleUpperCase() + ' Type') : 'Multiple Types';
3395
3402
  location = details.location;
@@ -8372,7 +8379,7 @@ class NavigationPane {
8372
8379
  const currFiles = getValue(this.parent.pathId[this.parent.pathId.length - 1], this.parent.feFiles);
8373
8380
  if (this.expandNodeTarget === 'add') {
8374
8381
  const sNode = select('[data-uid="' + this.treeObj.selectedNodes[0] + '"]', this.treeObj.element);
8375
- const ul = select('.' + LIST_PARENT, sNode);
8382
+ const ul = (!isNullOrUndefined(sNode)) ? select('.' + LIST_PARENT, sNode) : null;
8376
8383
  if (isNullOrUndefined(ul)) {
8377
8384
  this.addChild(args.files, this.treeObj.selectedNodes[0], !this.expandTree);
8378
8385
  }