@syncfusion/ej2-dropdowns 29.2.5 → 29.2.8

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.
@@ -3282,10 +3282,10 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
3282
3282
  this.hiddenElement.setAttribute(htmlAttr, this.htmlAttributes["" + htmlAttr]);
3283
3283
  }
3284
3284
  else if (defaultAttr.indexOf(htmlAttr) > -1) {
3285
- if (htmlAttr === 'placeholder') {
3285
+ if (htmlAttr === 'placeholder' && this.element.getAttribute('placeholder') !== this.htmlAttributes["" + htmlAttr]) {
3286
3286
  Input.setPlaceholder(this.htmlAttributes["" + htmlAttr], this.inputElement);
3287
3287
  }
3288
- else {
3288
+ else if (htmlAttr !== 'placeholder') {
3289
3289
  this.inputElement.setAttribute(htmlAttr, this.htmlAttributes["" + htmlAttr]);
3290
3290
  }
3291
3291
  }
@@ -5274,6 +5274,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
5274
5274
  }
5275
5275
  if (this.getInitialData) {
5276
5276
  this.updateActionCompleteDataValues(ulElement, list);
5277
+ if (this.enableVirtualization) {
5278
+ this.updateSelectElementData(this.allowFiltering);
5279
+ }
5277
5280
  this.getInitialData = false;
5278
5281
  this.isReactTemplateUpdate = true;
5279
5282
  this.searchLists(this.filterArgs);
@@ -6278,6 +6281,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
6278
6281
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6279
6282
  dataSourceCount = this.dataSource && this.dataSource.length ? this.dataSource.length : 0;
6280
6283
  }
6284
+ this.customFilterQuery = null;
6281
6285
  if (this.enableVirtualization && this.isFiltering() && isFilterValue && this.totalItemCount !== dataSourceCount) {
6282
6286
  this.updateInitialData();
6283
6287
  this.checkAndResetCache();
@@ -14086,10 +14090,12 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
14086
14090
  while (scrollElement) {
14087
14091
  var scrollElementStyle = getComputedStyle(scrollElement);
14088
14092
  var scrollElmentHeight = parseFloat(scrollElementStyle.maxHeight) || parseFloat(scrollElementStyle.height);
14089
- if (!isNaN(scrollElmentHeight)) {
14093
+ if (!isNaN(scrollElmentHeight) && this.isPopupOpen()) {
14090
14094
  var overflowY = scrollElementStyle.overflowY;
14091
- if (overflowY === 'auto' || overflowY === 'scroll') {
14092
- scrollElement.scrollTop = scrollElement.scrollHeight;
14095
+ var wrapperBottom = this.overAllWrapper.getBoundingClientRect().bottom;
14096
+ var scrollElementBottom = scrollElement.getBoundingClientRect().bottom;
14097
+ if ((overflowY === 'auto' || overflowY === 'scroll') && wrapperBottom > scrollElementBottom) {
14098
+ scrollElement.scrollTop += (wrapperBottom - scrollElementBottom) + 10;
14093
14099
  return;
14094
14100
  }
14095
14101
  }