@syncfusion/ej2-lists 21.2.6 → 21.2.9

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.
@@ -1958,7 +1958,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
1958
1958
  var focusedElement = this.curUL.querySelector('.' + classNames.focused);
1959
1959
  if (focusedElement) {
1960
1960
  focusedElement.classList.remove(classNames.focused);
1961
- if (!this.showCheckBox) {
1961
+ if (!this.showCheckBox && !isNullOrUndefined(this.selectedLI)) {
1962
1962
  this.selectedLI.classList.add(classNames.selected);
1963
1963
  }
1964
1964
  }
@@ -4629,7 +4629,8 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
4629
4629
  }
4630
4630
  var offset = target.getBoundingClientRect();
4631
4631
  var clientY = offset.bottom - ((offset.bottom - offset.top) / 2);
4632
- idx = e.clientY <= clientY ? idx : idx + 1;
4632
+ var cltY = e.changedTouches ? e.changedTouches[0].clientY : e.clientY;
4633
+ idx = cltY <= clientY ? idx : idx + 1;
4633
4634
  }
4634
4635
  return;
4635
4636
  }