@syncfusion/ej2-filemanager 29.1.37 → 29.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.
@@ -8279,21 +8279,24 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
8279
8279
  if (isBind) {
8280
8280
  this.viewElem = this.view === 'LargeIcons' ? this.largeiconsviewModule.element : this.element.querySelector('.e-gridcontent');
8281
8281
  }
8282
- if (!this.viewElem) {
8283
- return;
8284
- }
8285
8282
  if (isBind) {
8286
8283
  if (this.allowMultiSelection) {
8287
- EventHandler.add(this.viewElem, 'mousedown', this.onDragStart, this);
8288
8284
  this.on(layoutChange, this.onLayoutChange, this);
8289
8285
  this.on(selectionChanged, this.onLayoutChange, this);
8290
8286
  }
8291
8287
  }
8292
8288
  else {
8293
- EventHandler.remove(this.viewElem, 'mousedown', this.onDragStart);
8294
8289
  this.off(layoutChange, this.onLayoutChange);
8295
8290
  this.off(selectionChanged, this.onLayoutChange);
8296
8291
  }
8292
+ if (this.viewElem) {
8293
+ if (isBind && this.allowMultiSelection) {
8294
+ EventHandler.add(this.viewElem, 'mousedown', this.onDragStart, this);
8295
+ }
8296
+ else {
8297
+ EventHandler.remove(this.viewElem, 'mousedown', this.onDragStart);
8298
+ }
8299
+ }
8297
8300
  };
8298
8301
  FileManager.prototype.wireEvents = function () {
8299
8302
  if (this.enableRangeSelection) {
@@ -8393,7 +8396,9 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
8393
8396
  addClass(selectAll('.e-rowcell', item), ['e-active']);
8394
8397
  this.dragSelectedItems.push(item.querySelector('.e-drag-text').textContent);
8395
8398
  }
8396
- item.querySelector('.e-frame').classList.add('e-check');
8399
+ if (this.showItemCheckBoxes) {
8400
+ item.querySelector('.e-frame').classList.add('e-check');
8401
+ }
8397
8402
  }
8398
8403
  }
8399
8404
  };