@syncfusion/ej2-lists 25.1.39 → 25.1.41

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.
@@ -1904,8 +1904,8 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
1904
1904
  }
1905
1905
  };
1906
1906
  ListView.prototype.spaceKeyHandler = function (e) {
1907
- e.preventDefault();
1908
1907
  if (this.enable && this.showCheckBox && Object.keys(this.dataSource).length && this.curUL) {
1908
+ e.preventDefault();
1909
1909
  var li = this.curUL.querySelector('.' + classNames.focused);
1910
1910
  var checkboxElement = void 0;
1911
1911
  var checkIcon = void 0;
@@ -4158,7 +4158,7 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
4158
4158
  remove(newInst.placeHolderElement);
4159
4159
  }
4160
4160
  newInst.placeHolderElement = placeHolder;
4161
- if (e.target.className.indexOf('e-list-group-item') > -1) {
4161
+ if (e.target && typeof e.target.className === 'string' && e.target.className.indexOf('e-list-group-item') > -1) {
4162
4162
  newInst.element.insertBefore(newInst.placeHolderElement, newInst.element.children[newIdx]);
4163
4163
  }
4164
4164
  else if (newInst.element !== _this.element && newIdx === newInst.element.childElementCount) {