@syncfusion/ej2-querybuilder 24.2.5 → 24.2.9

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.
@@ -1367,6 +1367,10 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
1367
1367
  if (this.fieldMode === 'Default') {
1368
1368
  dropDownObj = getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), 'dropdownlist');
1369
1369
  this.selectedColumn = dropDownObj.getDataByValue(dropDownObj.value);
1370
+ if (this.selectedColumn.columns) {
1371
+ dropDownObj = getComponent(closest(element, '.e-rule-container').querySelector('.e-rule-sub-filter .e-dropdownlist'), 'dropdownlist');
1372
+ this.selectedColumn = this.getColumn(dropDownObj.value);
1373
+ }
1370
1374
  }
1371
1375
  else {
1372
1376
  dropDownObj = getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), 'dropdowntree');
@@ -2977,12 +2981,6 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
2977
2981
  getComponent(element[i], 'dropdown-btn').destroy();
2978
2982
  detach(element[i]);
2979
2983
  }
2980
- popupElement = document.querySelectorAll('.qb-dropdownlist');
2981
- if (popupElement) {
2982
- for (i = 0; i < popupElement.length; i++) {
2983
- popupElement[i].remove();
2984
- }
2985
- }
2986
2984
  tooltip = this.element.querySelectorAll('.e-rule-filter .e-control.e-tooltip');
2987
2985
  for (i = 0; i < tooltip.length; i++) {
2988
2986
  getComponent(tooltip[i], 'tooltip').destroy();
@@ -3022,6 +3020,12 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
3022
3020
  if (this.portals && this.portals.length) {
3023
3021
  this.clearQBTemplate();
3024
3022
  }
3023
+ popupElement = document.querySelectorAll('.qb-dropdownlist');
3024
+ if (popupElement) {
3025
+ for (i = 0; i < popupElement.length; i++) {
3026
+ popupElement[i].remove();
3027
+ }
3028
+ }
3025
3029
  classList(this.element, [], ['e-rtl', 'e-responsive', 'e-device']);
3026
3030
  this.isDestroy = false;
3027
3031
  };
@@ -3709,6 +3713,10 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
3709
3713
  if (!(rule.rules[0] && rule.rules[0].rules)) {
3710
3714
  this.disableRuleCondition(groupElem, rule);
3711
3715
  }
3716
+ var tooltipElem = this.element.querySelectorAll('.e-tooltip');
3717
+ for (var i_3 = 0; i_3 < tooltipElem.length; i_3++) {
3718
+ getComponent(tooltipElem[i_3], 'tooltip').refresh(tooltipElem[i_3]);
3719
+ }
3712
3720
  if (!this.isImportRules) {
3713
3721
  this.trigger('change', args);
3714
3722
  }