@syncfusion/ej2-dropdowns 22.2.9 → 22.2.10

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.
@@ -440,24 +440,30 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
440
440
  }
441
441
  var templateName = actionFailure ? 'actionFailureTemplate' : 'noRecordsTemplate';
442
442
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
443
- var noDataCompTemp = compiledString({}, this, templateName, templateId, this.isStringTemplate, null, ele);
444
- if (noDataCompTemp && noDataCompTemp.length > 0) {
445
- for (var i = 0; i < noDataCompTemp.length; i++) {
443
+ var noDataElement = void 0;
444
+ if ((this.isReact) && typeof template === 'function') {
445
+ noDataElement = compiledString({}, this, templateName, templateId, this.isStringTemplate, null);
446
+ }
447
+ else {
448
+ noDataElement = compiledString({}, this, templateName, templateId, this.isStringTemplate, null, ele);
449
+ }
450
+ if (noDataElement && noDataElement.length > 0) {
451
+ for (var i = 0; i < noDataElement.length; i++) {
446
452
  if (this.getModuleName() === 'listbox' && templateName === 'noRecordsTemplate') {
447
- if (noDataCompTemp[i].nodeName === '#text') {
453
+ if (noDataElement[i].nodeName === '#text') {
448
454
  var liElem = this.createElement('li');
449
- liElem.textContent = noDataCompTemp[i].textContent;
455
+ liElem.textContent = noDataElement[i].textContent;
450
456
  liElem.classList.add('e-list-nrt');
451
457
  liElem.setAttribute('role', 'option');
452
458
  ele.appendChild(liElem);
453
459
  }
454
460
  else {
455
- noDataCompTemp[i].classList.add('e-list-nr-template');
456
- ele.appendChild(noDataCompTemp[i]);
461
+ noDataElement[i].classList.add('e-list-nr-template');
462
+ ele.appendChild(noDataElement[i]);
457
463
  }
458
464
  }
459
465
  else {
460
- ele.appendChild(noDataCompTemp[i]);
466
+ ele.appendChild(noDataElement[i]);
461
467
  }
462
468
  }
463
469
  }
@@ -13032,6 +13038,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
13032
13038
  * @returns {void}
13033
13039
  */
13034
13040
  MultiSelect.prototype.render = function () {
13041
+ if (!isNullOrUndefined(this.value)) {
13042
+ // eslint-disable-next-line
13043
+ this.value = this.value.slice();
13044
+ }
13035
13045
  this.setDynValue = this.initStatus = false;
13036
13046
  this.isSelectAll = false;
13037
13047
  this.selectAllEventEle = [];