@syncfusion/ej2-querybuilder 22.2.8 → 22.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.
@@ -1281,9 +1281,14 @@ let QueryBuilder = class QueryBuilder extends Component {
1281
1281
  if (element.className.indexOf('e-radio') > -1) {
1282
1282
  // eslint-disable-next-line
1283
1283
  rbValue = parseInt(element.id.split('valuekey')[1], 0);
1284
- dropDownObj =
1285
- getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), 'dropdownlist');
1286
- this.selectedColumn = dropDownObj.getDataByValue(dropDownObj.value);
1284
+ if (this.fieldMode === 'Default') {
1285
+ dropDownObj = getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), 'dropdownlist');
1286
+ this.selectedColumn = dropDownObj.getDataByValue(dropDownObj.value);
1287
+ }
1288
+ else {
1289
+ dropDownObj = getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), 'dropdowntree');
1290
+ this.selectedColumn = this.getColumn(dropDownObj.value[0]);
1291
+ }
1287
1292
  if (this.selectedColumn.values) {
1288
1293
  value = this.selectedColumn.values[rbValue];
1289
1294
  }