@syncfusion/ej2-dropdowns 19.4.41 → 19.4.42

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.
@@ -1199,7 +1199,8 @@ let DropDownBase = class DropDownBase extends Component {
1199
1199
  li.innerText = itemText;
1200
1200
  }
1201
1201
  if (this.itemTemplate && !isHeader) {
1202
- const compiledString = compile(this.itemTemplate);
1202
+ const itemCheck = this.templateCompiler(this.itemTemplate);
1203
+ const compiledString = itemCheck ? compile(select(this.itemTemplate, document).innerHTML.trim()) : compile(this.itemTemplate);
1203
1204
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1204
1205
  const addItemTemplate = compiledString(item, this, 'itemTemplate', this.itemTemplateId, this.isStringTemplate, null, li);
1205
1206
  if (addItemTemplate) {
@@ -12048,6 +12049,17 @@ let MultiSelect = class MultiSelect extends DropDownBase {
12048
12049
  this.notify('selectAllText', false);
12049
12050
  break;
12050
12051
  case 'popupHeight':
12052
+ if (this.popupObj) {
12053
+ let overAllHeight = parseInt(this.popupHeight, 10);
12054
+ if (this.popupHeight !== 'auto') {
12055
+ this.list.style.maxHeight = formatUnit(overAllHeight);
12056
+ this.popupWrapper.style.maxHeight = formatUnit(this.popupHeight);
12057
+ }
12058
+ else {
12059
+ this.list.style.maxHeight = formatUnit(this.popupHeight);
12060
+ }
12061
+ }
12062
+ break;
12051
12063
  case 'headerTemplate':
12052
12064
  case 'footerTemplate':
12053
12065
  this.reInitializePoup();