@syncfusion/ej2-dropdowns 23.2.4 → 23.2.6

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.
@@ -288,10 +288,22 @@ class VirtualScroll {
288
288
  generateAndExecuteQueryAsync(query, virtualItemStartIndex = 0, virtualItemEndIndex = 0, isQueryGenerated = false) {
289
289
  let dataSource = this.parent.dataSource;
290
290
  if (!isQueryGenerated) {
291
- query = this.getPageQuery(query, virtualItemStartIndex, virtualItemEndIndex);
291
+ if (!isNullOrUndefined(this.parent.query)) {
292
+ var newQuery = this.removeSkipAndTakeEvents(this.parent.query.clone());
293
+ query = this.getPageQuery(newQuery, virtualItemStartIndex, virtualItemEndIndex);
294
+ }
295
+ else {
296
+ query = this.getPageQuery(query, virtualItemStartIndex, virtualItemEndIndex);
297
+ }
292
298
  }
293
299
  this.parent.resetList(dataSource, this.parent.fields, query);
294
300
  }
301
+ removeSkipAndTakeEvents(query) {
302
+ query.queries = query.queries.filter(function (event) {
303
+ return event.fn !== 'onSkip' && event.fn !== 'onTake';
304
+ });
305
+ return query;
306
+ }
295
307
  setCurrentViewDataAsync() {
296
308
  // eslint-disable-next-line
297
309
  let currentData = [];
@@ -12741,7 +12753,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
12741
12753
  updateDataList() {
12742
12754
  if (this.mainList && this.ulElement && !(this.isFiltered || this.filterAction || this.targetElement().trim())) {
12743
12755
  let isDynamicGroupItemUpdate = this.mainList.childElementCount < this.ulElement.childElementCount;
12744
- let isReactTemplateUpdate = ((this.ulElement.childElementCount > 0 && this.ulElement.children[0].childElementCount > 0) && (this.mainList.children[0].childElementCount < this.ulElement.children[0].childElementCount));
12756
+ let isReactTemplateUpdate = ((this.ulElement.childElementCount > 0 && this.ulElement.children[0].childElementCount > 0) && (this.mainList.children[0].childElementCount && (this.mainList.children[0].childElementCount < this.ulElement.children[0].childElementCount)));
12745
12757
  let isAngularTemplateUpdate = this.itemTemplate && this.ulElement.childElementCount > 0 && !(this.ulElement.childElementCount < this.mainList.childElementCount) && (this.ulElement.children[0].childElementCount > 0 || (this.fields.groupBy && this.ulElement.children[1] && this.ulElement.children[1].childElementCount > 0));
12746
12758
  if (isDynamicGroupItemUpdate || isReactTemplateUpdate || isAngularTemplateUpdate) {
12747
12759
  //EJ2-57748 - for this task, we prevent the ul element cloning ( this.mainList = this.ulElement.cloneNode ? <HTMLElement>this.ulElement.cloneNode(true) : this.ulElement;)
@@ -17847,6 +17859,9 @@ let Mention = class Mention extends DropDownBase {
17847
17859
  const value = this.getFormattedValue(focusItem.getAttribute('data-value'));
17848
17860
  this.selectEventCallback(focusItem, this.getDataByValue(value), value, true);
17849
17861
  }
17862
+ if (this.beforePopupOpen) {
17863
+ this.renderPopup();
17864
+ }
17850
17865
  }
17851
17866
  }
17852
17867
  setDataIndex() {