@syncfusion/ej2-dropdowns 22.2.9 → 22.2.11

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
  }
@@ -3308,7 +3314,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
3308
3314
  _this.wireListEvents();
3309
3315
  }
3310
3316
  _this.selectedElementID = _this.selectedLI ? _this.selectedLI.id : null;
3311
- attributes(_this.targetElement(), { 'aria-expanded': 'true', 'aria-owns': _this.inputElement.id + '_options' });
3317
+ attributes(_this.targetElement(), { 'aria-expanded': 'true', 'aria-owns': _this.element.id + '_options' });
3312
3318
  _this.inputElement.setAttribute('aria-expanded', 'true');
3313
3319
  var inputParent = _this.isFiltering() ? _this.filterInput.parentElement : _this.inputWrapper.container;
3314
3320
  addClass([inputParent], [dropDownListClasses.inputFocus]);
@@ -4086,8 +4092,10 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
4086
4092
  }
4087
4093
  break;
4088
4094
  case 'showClearButton':
4089
- Input.setClearButton(newProp.showClearButton, this_1.inputElement, this_1.inputWrapper, null, this_1.createElement);
4090
- this_1.bindClearEvent();
4095
+ if (!this_1.inputWrapper.clearButton) {
4096
+ Input.setClearButton(newProp.showClearButton, this_1.inputElement, this_1.inputWrapper, null, this_1.createElement);
4097
+ this_1.bindClearEvent();
4098
+ }
4091
4099
  break;
4092
4100
  default:
4093
4101
  {
@@ -13032,6 +13040,10 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
13032
13040
  * @returns {void}
13033
13041
  */
13034
13042
  MultiSelect.prototype.render = function () {
13043
+ if (!isNullOrUndefined(this.value)) {
13044
+ // eslint-disable-next-line
13045
+ this.value = this.value.slice();
13046
+ }
13035
13047
  this.setDynValue = this.initStatus = false;
13036
13048
  this.isSelectAll = false;
13037
13049
  this.selectAllEventEle = [];