@syncfusion/ej2-lists 24.1.46 → 24.2.4

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.
@@ -1487,7 +1487,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
1487
1487
  if (args.item.classList.contains(classNames.hasChild)) {
1488
1488
  this.isNestedList = true;
1489
1489
  }
1490
- if (this.showCheckBox && this.isValidLI(args.item)) {
1490
+ if (this.showCheckBox && args.item.classList.contains(classNames.listItem)) {
1491
1491
  var checkboxElement = void 0;
1492
1492
  var fieldData_1;
1493
1493
  // eslint-disable-next-line prefer-const
@@ -4110,7 +4110,7 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
4110
4110
  var target = _this.getSortableElement(e.target, newInst);
4111
4111
  if ((_this.isValidTarget(target, newInst) || e.target.className.indexOf('e-list-group-item') > -1) && (_this.curTarget !== target ||
4112
4112
  !isNullOrUndefined(newInst.placeHolder)) && (newInst.placeHolderElement ? newInst.placeHolderElement !== e.target : true)) {
4113
- if (e.target.className.indexOf('e-list-group-item') > -1) {
4113
+ if (e.target.classList.contains('e-list-group-item')) {
4114
4114
  target = e.target;
4115
4115
  }
4116
4116
  _this.curTarget = target;