@syncfusion/ej2-filemanager 25.1.38 → 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.
@@ -1639,11 +1639,16 @@ function setNextPath(parent, path) {
1639
1639
  var newPath = (folders[i] === '') ? '/' : (parent.path + folders[i] + '/');
1640
1640
  // eslint-disable-next-line
1641
1641
  var data = getObject(parent, key, folders[i]);
1642
- var id = getValue('_fm_id', data);
1643
- parent.setProperties({ path: newPath }, true);
1644
- parent.pathId.push(id);
1645
- parent.itemData = [data];
1646
- parent.pathNames.push(getValue('name', data));
1642
+ if (!isNullOrUndefined(data)) {
1643
+ var id = getValue('_fm_id', data);
1644
+ parent.setProperties({ path: newPath }, true);
1645
+ parent.pathId.push(id);
1646
+ parent.itemData = [data];
1647
+ parent.pathNames.push(getValue('name', data));
1648
+ }
1649
+ else {
1650
+ parent.originalPath = newPath;
1651
+ }
1647
1652
  read(parent, eventName, parent.path);
1648
1653
  break;
1649
1654
  }
@@ -6229,7 +6234,6 @@ var ContextMenu$2 = /** @__PURE__ @class */ (function () {
6229
6234
  /* istanbul ignore next */
6230
6235
  ContextMenu$$1.prototype.onBeforeOpen = function (args) {
6231
6236
  var _this = this;
6232
- this.disabledItems = [];
6233
6237
  var selected = false;
6234
6238
  var uid;
6235
6239
  // eslint-disable-next-line
@@ -6776,7 +6780,7 @@ var ContextMenu$2 = /** @__PURE__ @class */ (function () {
6776
6780
  return items;
6777
6781
  };
6778
6782
  ContextMenu$$1.prototype.getMenuId = function (id) {
6779
- return this.parent.element.id + '_cm_' + id.toLowerCase();
6783
+ return this.parent.element.id + '_cm_' + id.split(' ').join('').toLowerCase();
6780
6784
  };
6781
6785
  return ContextMenu$$1;
6782
6786
  }());