@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.
@@ -3175,10 +3175,10 @@ let DropDownList = class DropDownList extends DropDownBase {
3175
3175
  this.hiddenElement.setAttribute(htmlAttr, this.htmlAttributes[`${htmlAttr}`]);
3176
3176
  }
3177
3177
  else if (defaultAttr.indexOf(htmlAttr) > -1) {
3178
- if (htmlAttr === 'placeholder') {
3178
+ if (htmlAttr === 'placeholder' && this.element.getAttribute('placeholder') !== this.htmlAttributes[`${htmlAttr}`]) {
3179
3179
  Input.setPlaceholder(this.htmlAttributes[`${htmlAttr}`], this.inputElement);
3180
3180
  }
3181
- else {
3181
+ else if (htmlAttr !== 'placeholder') {
3182
3182
  this.inputElement.setAttribute(htmlAttr, this.htmlAttributes[`${htmlAttr}`]);
3183
3183
  }
3184
3184
  }
@@ -5158,6 +5158,9 @@ let DropDownList = class DropDownList extends DropDownBase {
5158
5158
  }
5159
5159
  if (this.getInitialData) {
5160
5160
  this.updateActionCompleteDataValues(ulElement, list);
5161
+ if (this.enableVirtualization) {
5162
+ this.updateSelectElementData(this.allowFiltering);
5163
+ }
5161
5164
  this.getInitialData = false;
5162
5165
  this.isReactTemplateUpdate = true;
5163
5166
  this.searchLists(this.filterArgs);
@@ -6147,6 +6150,7 @@ let DropDownList = class DropDownList extends DropDownBase {
6147
6150
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6148
6151
  dataSourceCount = this.dataSource && this.dataSource.length ? this.dataSource.length : 0;
6149
6152
  }
6153
+ this.customFilterQuery = null;
6150
6154
  if (this.enableVirtualization && this.isFiltering() && isFilterValue && this.totalItemCount !== dataSourceCount) {
6151
6155
  this.updateInitialData();
6152
6156
  this.checkAndResetCache();
@@ -13831,10 +13835,12 @@ let MultiSelect = class MultiSelect extends DropDownBase {
13831
13835
  while (scrollElement) {
13832
13836
  const scrollElementStyle = getComputedStyle(scrollElement);
13833
13837
  const scrollElmentHeight = parseFloat(scrollElementStyle.maxHeight) || parseFloat(scrollElementStyle.height);
13834
- if (!isNaN(scrollElmentHeight)) {
13838
+ if (!isNaN(scrollElmentHeight) && this.isPopupOpen()) {
13835
13839
  const overflowY = scrollElementStyle.overflowY;
13836
- if (overflowY === 'auto' || overflowY === 'scroll') {
13837
- scrollElement.scrollTop = scrollElement.scrollHeight;
13840
+ const wrapperBottom = this.overAllWrapper.getBoundingClientRect().bottom;
13841
+ const scrollElementBottom = scrollElement.getBoundingClientRect().bottom;
13842
+ if ((overflowY === 'auto' || overflowY === 'scroll') && wrapperBottom > scrollElementBottom) {
13843
+ scrollElement.scrollTop += (wrapperBottom - scrollElementBottom) + 10;
13838
13844
  return;
13839
13845
  }
13840
13846
  }