@syncfusion/ej2-dropdowns 30.1.41 → 30.1.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.
@@ -367,7 +367,7 @@ class VirtualScroll {
367
367
  if (this.component === 'combobox') {
368
368
  let totalData = 0;
369
369
  if (this.parent.dataSource instanceof DataManager) {
370
- totalData = this.parent.dataSource.dataSource.json.length;
370
+ totalData = this.parent.remoteDataCount;
371
371
  }
372
372
  else if (this.parent.dataSource && this.parent.dataSource.length > 0) {
373
373
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -687,6 +687,7 @@ class VirtualScroll {
687
687
  this.parent.isVirtualScrolling = true;
688
688
  setTimeout(() => {
689
689
  this.parent.pageCount = this.parent.getPageCount();
690
+ this.parent.isRequesting = false;
690
691
  this.virtualScrollRefreshAsync().then(() => {
691
692
  if (this.parent.popupObj) {
692
693
  this.parent.list = this.parent.popupObj.element.querySelector('.' + 'e-content') || select('.' + 'e-content');
@@ -1505,11 +1506,12 @@ let DropDownBase = class DropDownBase extends Component {
1505
1506
  this.emptyDataRequest(fields);
1506
1507
  return;
1507
1508
  }
1508
- eventArgs.data.executeQuery(this.getQuery(eventArgs.query)).then((e) => {
1509
+ const query = this.getQuery(eventArgs.query);
1510
+ eventArgs.data.executeQuery(query).then((e) => {
1509
1511
  this.isPreventChange = this.isAngular && this.preventChange ? true : this.isPreventChange;
1510
1512
  let isReOrder = true;
1511
1513
  if (!this.virtualSelectAll) {
1512
- const newQuery = this.getQuery(eventArgs.query);
1514
+ const newQuery = query.clone();
1513
1515
  for (let queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
1514
1516
  if (newQuery.queries[queryElements].fn === 'onWhere') {
1515
1517
  isWhereExist = true;
@@ -8128,7 +8130,7 @@ let DropDownTree = class DropDownTree extends Component {
8128
8130
  if (this.isPopupOpen) {
8129
8131
  this.hidePopup();
8130
8132
  }
8131
- else if (!(e instanceof TouchEvent) && e.button !== 2) {
8133
+ else if (e.type === 'touchstart' || ('button' in e && e.button !== 2)) {
8132
8134
  this.focusIn(e);
8133
8135
  this.renderPopup();
8134
8136
  }
@@ -11155,8 +11157,8 @@ let ComboBox = class ComboBox extends DropDownList {
11155
11157
  const dataItem = this.getItemData();
11156
11158
  const value = this.allowObjectBinding ?
11157
11159
  this.getDataByValue(dataItem.value) : dataItem.value;
11158
- if ((this.value === dataItem.value && this.text !== dataItem.text) ||
11159
- (this.value !== dataItem.value && this.text === dataItem.text)) {
11160
+ if ((this.value === dataItem.value && this.text !== dataItem.text.toString()) ||
11161
+ (this.value !== dataItem.value && this.text === dataItem.text.toString())) {
11160
11162
  this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
11161
11163
  }
11162
11164
  }
@@ -16820,6 +16822,11 @@ let MultiSelect = class MultiSelect extends DropDownBase {
16820
16822
  removeClass(selectedItems, className);
16821
16823
  while (temp > 0) {
16822
16824
  selectedItems[temp - 1].setAttribute('aria-selected', 'false');
16825
+ if (this.mode === 'CheckBox') {
16826
+ if (selectedItems && (selectedItems.length > (temp - 1))) {
16827
+ removeClass([selectedItems[temp - 1].firstElementChild.lastElementChild], 'e-check');
16828
+ }
16829
+ }
16823
16830
  temp--;
16824
16831
  }
16825
16832
  }