@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.
@@ -1876,8 +1876,8 @@ let ListView = class ListView extends Component {
1876
1876
  }
1877
1877
  }
1878
1878
  spaceKeyHandler(e) {
1879
- e.preventDefault();
1880
1879
  if (this.enable && this.showCheckBox && Object.keys(this.dataSource).length && this.curUL) {
1880
+ e.preventDefault();
1881
1881
  const li = this.curUL.querySelector('.' + classNames.focused);
1882
1882
  let checkboxElement;
1883
1883
  let checkIcon;
@@ -4098,7 +4098,7 @@ let Sortable = Sortable_1 = class Sortable extends Base {
4098
4098
  remove(newInst.placeHolderElement);
4099
4099
  }
4100
4100
  newInst.placeHolderElement = placeHolder;
4101
- if (e.target.className.indexOf('e-list-group-item') > -1) {
4101
+ if (e.target && typeof e.target.className === 'string' && e.target.className.indexOf('e-list-group-item') > -1) {
4102
4102
  newInst.element.insertBefore(newInst.placeHolderElement, newInst.element.children[newIdx]);
4103
4103
  }
4104
4104
  else if (newInst.element !== this.element && newIdx === newInst.element.childElementCount) {