@syncfusion/ej2-dropdowns 21.2.3 → 21.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.
@@ -442,9 +442,18 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
442
442
  if (noDataCompTemp && noDataCompTemp.length > 0) {
443
443
  for (var i = 0; i < noDataCompTemp.length; i++) {
444
444
  if (this.getModuleName() === 'listbox' && templateName === 'noRecordsTemplate') {
445
- noDataCompTemp[i].classList.add('e-list-nr-template');
445
+ if (noDataCompTemp[i].nodeName === '#text') {
446
+ var liElem = this.createElement('li');
447
+ liElem.textContent = noDataCompTemp[i].textContent;
448
+ liElem.classList.add('e-list-nrt');
449
+ liElem.setAttribute('role', 'option');
450
+ ele.appendChild(liElem);
451
+ }
452
+ else {
453
+ noDataCompTemp[i].classList.add('e-list-nr-template');
454
+ ele.appendChild(noDataCompTemp[i]);
455
+ }
446
456
  }
447
- ele.appendChild(noDataCompTemp[i]);
448
457
  }
449
458
  }
450
459
  this.renderReactTemplates();
@@ -4304,6 +4313,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
4304
4313
  this.header = null;
4305
4314
  this.previousSelectedLI = null;
4306
4315
  this.valueTempElement = null;
4316
+ this.actionData.ulElement = null;
4307
4317
  _super.prototype.destroy.call(this);
4308
4318
  };
4309
4319
  /* eslint-disable valid-jsdoc, jsdoc/require-returns-description */
@@ -15840,11 +15850,13 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
15840
15850
  if (!isSelect && liselect || isSelect && !liselect && li) {
15841
15851
  if (_this.selectionSettings.showCheckbox) {
15842
15852
  _this.notify('updatelist', { li: li, module: 'listbox' });
15853
+ li.focus();
15843
15854
  }
15844
15855
  else {
15845
15856
  if (isSelect) {
15846
15857
  li.classList.add(cssClass.selected);
15847
15858
  li.setAttribute('aria-selected', 'true');
15859
+ li.focus();
15848
15860
  }
15849
15861
  else {
15850
15862
  li.classList.remove(cssClass.selected);