@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.
@@ -8177,16 +8177,18 @@ let FileManager = FileManager_1 = class FileManager extends Component {
8177
8177
  }
8178
8178
  }
8179
8179
  selectItems() {
8180
- this.dragSelectedItems = [];
8181
8180
  const dragRect = this.dragSelectElement.getBoundingClientRect();
8181
+ if (dragRect.height > 0 && dragRect.width > 0) {
8182
+ this.dragSelectedItems = [];
8183
+ removeClass(selectAll('.e-active', this.viewElem), ['e-active', 'e-focus']);
8184
+ removeClass(selectAll('.e-check', this.viewElem), ['e-check']);
8185
+ }
8182
8186
  const allItems = selectAll(this.viewElem.classList.contains('e-large-icons') ? '.e-list-item' : '.e-row', this.viewElem);
8183
- removeClass(selectAll('.e-active', this.viewElem), ['e-active', 'e-focus']);
8184
- removeClass(selectAll('.e-check', this.viewElem), ['e-check']);
8185
8187
  for (const item of allItems) {
8186
8188
  const itemRect = item.getBoundingClientRect();
8187
8189
  if (!(dragRect.right < itemRect.left || dragRect.left > itemRect.right
8188
8190
  || dragRect.bottom < itemRect.top || dragRect.top > itemRect.bottom)
8189
- && (this.dragSelectElement.clientHeight > 0 && this.dragSelectElement.clientWidth > 0)) {
8191
+ && (dragRect.height > 0 && dragRect.width > 0)) {
8190
8192
  if (this.viewElem.classList.contains('e-large-icons')) {
8191
8193
  item.classList.add('e-active');
8192
8194
  this.dragSelectedItems.push(item.getAttribute('title'));