@syncfusion/ej2-lists 20.3.50 → 20.3.51

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.
@@ -1642,6 +1642,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
1642
1642
  };
1643
1643
  ListView.prototype.clickHandler = function (e) {
1644
1644
  var target = e.target;
1645
+ this.targetElement = target;
1645
1646
  var classList = target.classList;
1646
1647
  var closestElement;
1647
1648
  if (classList.contains(classNames.backIcon) || classList.contains(classNames.headerText)) {
@@ -1689,10 +1690,18 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
1689
1690
  }
1690
1691
  else {
1691
1692
  this.setCheckboxLI(li, e);
1693
+ if ((target.nodeName == "INPUT") || (target.nodeName == "TEXTAREA")) {
1694
+ target.classList.add('e-focused');
1695
+ this.targetElement = target;
1696
+ }
1692
1697
  }
1693
1698
  }
1694
1699
  else {
1695
1700
  this.setSelectLI(li, e);
1701
+ if ((target.nodeName == "INPUT") || (target.nodeName == "TEXTAREA")) {
1702
+ target.classList.add('e-focused');
1703
+ this.targetElement = target;
1704
+ }
1696
1705
  }
1697
1706
  closestElement = closest(e.target, 'li');
1698
1707
  if (!isNullOrUndefined(closestElement)) {
@@ -1920,11 +1929,7 @@ var ListView = /** @__PURE__ @class */ (function (_super) {
1920
1929
  this.back();
1921
1930
  break;
1922
1931
  case 32:
1923
- var textAreaFocus = void 0;
1924
- if (!isNullOrUndefined(this.curUL)) {
1925
- textAreaFocus = this.curUL.querySelector('textarea') || this.curUL.querySelector('input');
1926
- }
1927
- if (isNullOrUndefined(textAreaFocus) || !(textAreaFocus.classList.contains('e-focused'))) {
1932
+ if (isNullOrUndefined(this.targetElement) || !(this.targetElement.classList.contains('e-focused'))) {
1928
1933
  this.spaceKeyHandler(e);
1929
1934
  }
1930
1935
  break;
@@ -4351,6 +4356,10 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
4351
4356
  });
4352
4357
  }
4353
4358
  }
4359
+ else if (_this.curTarget !== _this.target && _this.scope && _this.curTarget !== target && !isNullOrUndefined(newInst.placeHolder)) {
4360
+ remove(_this.getSortableInstance(_this.curTarget).placeHolderElement);
4361
+ _this.curTarget = _this.target;
4362
+ }
4354
4363
  newInst = _this.getSortableInstance(_this.curTarget);
4355
4364
  if (isNullOrUndefined(target) && e.target !== newInst.placeHolderElement) {
4356
4365
  if (_this.isPlaceHolderPresent(newInst)) {