@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.
@@ -3529,11 +3529,18 @@ function getOptions(parent, text, e, details, replaceItems) {
3529
3529
  ];
3530
3530
  break;
3531
3531
  case 'MultipleFileDetails':
3532
+ var index_1;
3532
3533
  options.dialogName = 'File Details';
3533
- strArr = details.name.split(',').map(function (val) {
3534
- var index = val.indexOf('.') + 1;
3535
- return (index === 0) ? 'Folder' : val.substr(index).replace(' ', '');
3534
+ strArr = parent.itemData.map(function (val) {
3535
+ index_1 = val.name.indexOf('.') + 1;
3536
+ return (index_1 === 0 && (!val.isFile)) ? 'Folder' : ((index_1 !== 0) ? val.name.substr(index_1).replace(' ', '') : 'undetermined');
3536
3537
  });
3538
+ if (strArr[0] == undefined) {
3539
+ strArr = details.name.split(',').map(function (val) {
3540
+ index_1 = val.indexOf('.') + 1;
3541
+ return (index_1 === 0) ? 'Folder' : val.substr(index_1).replace(' ', '');
3542
+ });
3543
+ }
3537
3544
  fileType$$1 = strArr.every(function (val, i, arr) { return val === arr[0]; }) ?
3538
3545
  ((strArr[0] === 'Folder') ? 'Folder' : strArr[0].toLocaleUpperCase() + ' Type') : 'Multiple Types';
3539
3546
  location = details.location;
@@ -8557,7 +8564,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
8557
8564
  var currFiles = getValue(this.parent.pathId[this.parent.pathId.length - 1], this.parent.feFiles);
8558
8565
  if (this.expandNodeTarget === 'add') {
8559
8566
  var sNode = select('[data-uid="' + this.treeObj.selectedNodes[0] + '"]', this.treeObj.element);
8560
- var ul = select('.' + LIST_PARENT, sNode);
8567
+ var ul = (!isNullOrUndefined(sNode)) ? select('.' + LIST_PARENT, sNode) : null;
8561
8568
  if (isNullOrUndefined(ul)) {
8562
8569
  this.addChild(args.files, this.treeObj.selectedNodes[0], !this.expandTree);
8563
8570
  }