@syncfusion/ej2-filemanager 25.1.37 → 25.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.
@@ -1490,11 +1490,16 @@ function setNextPath(parent, path) {
1490
1490
  const newPath = (folders[i] === '') ? '/' : (parent.path + folders[i] + '/');
1491
1491
  // eslint-disable-next-line
1492
1492
  const data = getObject(parent, key, folders[i]);
1493
- const id = getValue('_fm_id', data);
1494
- parent.setProperties({ path: newPath }, true);
1495
- parent.pathId.push(id);
1496
- parent.itemData = [data];
1497
- parent.pathNames.push(getValue('name', data));
1493
+ if (!isNullOrUndefined(data)) {
1494
+ const id = getValue('_fm_id', data);
1495
+ parent.setProperties({ path: newPath }, true);
1496
+ parent.pathId.push(id);
1497
+ parent.itemData = [data];
1498
+ parent.pathNames.push(getValue('name', data));
1499
+ }
1500
+ else {
1501
+ parent.originalPath = newPath;
1502
+ }
1498
1503
  read(parent, eventName, parent.path);
1499
1504
  break;
1500
1505
  }
@@ -6067,7 +6072,6 @@ class ContextMenu$2 {
6067
6072
  }
6068
6073
  /* istanbul ignore next */
6069
6074
  onBeforeOpen(args) {
6070
- this.disabledItems = [];
6071
6075
  let selected = false;
6072
6076
  let uid;
6073
6077
  // eslint-disable-next-line
@@ -6612,7 +6616,7 @@ class ContextMenu$2 {
6612
6616
  return items;
6613
6617
  }
6614
6618
  getMenuId(id) {
6615
- return this.parent.element.id + '_cm_' + id.toLowerCase();
6619
+ return this.parent.element.id + '_cm_' + id.split(' ').join('').toLowerCase();
6616
6620
  }
6617
6621
  }
6618
6622
 
@@ -9918,8 +9922,7 @@ class DetailsView {
9918
9922
  field: 'name', headerText: getLocaleText(this.parent, 'Name'), width: 'auto', minWidth: 120, headerTextAlign: 'Left',
9919
9923
  template: initializeCSPTemplate(function (data) {
9920
9924
  const name = enableHtmlSanitizer ? SanitizeHtmlHelper.sanitize(data.name) : data.name;
9921
- return `<div class="e-fe-text">${name}</div><div class="e-fe-date">${data._fm_modified}</div>' +
9922
- '<span class="e-fe-size">${data.size}</span>`;
9925
+ return `<div class="e-fe-text">${name}</div><div class="e-fe-date">${data._fm_modified}</div><span class="e-fe-size">${data.size}</span>`;
9923
9926
  })
9924
9927
  }
9925
9928
  ];