@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.
@@ -8094,21 +8094,24 @@ let FileManager = FileManager_1 = class FileManager extends Component {
8094
8094
  if (isBind) {
8095
8095
  this.viewElem = this.view === 'LargeIcons' ? this.largeiconsviewModule.element : this.element.querySelector('.e-gridcontent');
8096
8096
  }
8097
- if (!this.viewElem) {
8098
- return;
8099
- }
8100
8097
  if (isBind) {
8101
8098
  if (this.allowMultiSelection) {
8102
- EventHandler.add(this.viewElem, 'mousedown', this.onDragStart, this);
8103
8099
  this.on(layoutChange, this.onLayoutChange, this);
8104
8100
  this.on(selectionChanged, this.onLayoutChange, this);
8105
8101
  }
8106
8102
  }
8107
8103
  else {
8108
- EventHandler.remove(this.viewElem, 'mousedown', this.onDragStart);
8109
8104
  this.off(layoutChange, this.onLayoutChange);
8110
8105
  this.off(selectionChanged, this.onLayoutChange);
8111
8106
  }
8107
+ if (this.viewElem) {
8108
+ if (isBind && this.allowMultiSelection) {
8109
+ EventHandler.add(this.viewElem, 'mousedown', this.onDragStart, this);
8110
+ }
8111
+ else {
8112
+ EventHandler.remove(this.viewElem, 'mousedown', this.onDragStart);
8113
+ }
8114
+ }
8112
8115
  }
8113
8116
  wireEvents() {
8114
8117
  if (this.enableRangeSelection) {
@@ -8207,7 +8210,9 @@ let FileManager = FileManager_1 = class FileManager extends Component {
8207
8210
  addClass(selectAll('.e-rowcell', item), ['e-active']);
8208
8211
  this.dragSelectedItems.push(item.querySelector('.e-drag-text').textContent);
8209
8212
  }
8210
- item.querySelector('.e-frame').classList.add('e-check');
8213
+ if (this.showItemCheckBoxes) {
8214
+ item.querySelector('.e-frame').classList.add('e-check');
8215
+ }
8211
8216
  }
8212
8217
  }
8213
8218
  }