@syncfusion/ej2-filemanager 28.2.5 → 28.2.6

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.
@@ -8362,17 +8362,19 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
8362
8362
  }
8363
8363
  };
8364
8364
  FileManager.prototype.selectItems = function () {
8365
- this.dragSelectedItems = [];
8366
8365
  var dragRect = this.dragSelectElement.getBoundingClientRect();
8366
+ if (dragRect.height > 0 && dragRect.width > 0) {
8367
+ this.dragSelectedItems = [];
8368
+ removeClass(selectAll('.e-active', this.viewElem), ['e-active', 'e-focus']);
8369
+ removeClass(selectAll('.e-check', this.viewElem), ['e-check']);
8370
+ }
8367
8371
  var allItems = selectAll(this.viewElem.classList.contains('e-large-icons') ? '.e-list-item' : '.e-row', this.viewElem);
8368
- removeClass(selectAll('.e-active', this.viewElem), ['e-active', 'e-focus']);
8369
- removeClass(selectAll('.e-check', this.viewElem), ['e-check']);
8370
8372
  for (var _i = 0, allItems_1 = allItems; _i < allItems_1.length; _i++) {
8371
8373
  var item = allItems_1[_i];
8372
8374
  var itemRect = item.getBoundingClientRect();
8373
8375
  if (!(dragRect.right < itemRect.left || dragRect.left > itemRect.right
8374
8376
  || dragRect.bottom < itemRect.top || dragRect.top > itemRect.bottom)
8375
- && (this.dragSelectElement.clientHeight > 0 && this.dragSelectElement.clientWidth > 0)) {
8377
+ && (dragRect.height > 0 && dragRect.width > 0)) {
8376
8378
  if (this.viewElem.classList.contains('e-large-icons')) {
8377
8379
  item.classList.add('e-active');
8378
8380
  this.dragSelectedItems.push(item.getAttribute('title'));