Skip to content

Commit b8873a0

Browse files
committed
feat(query-builder): hide in and notIn in advanced filtering
1 parent 8bce79d commit b8873a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

projects/igniteui-angular/src/lib/query-builder/query-builder-tree.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,11 @@ export class IgxQueryBuilderTreeComponent implements AfterViewInit, OnDestroy {
11071107
* @hidden @internal
11081108
*/
11091109
public getConditionList(): string[] {
1110-
return this.selectedField ? this.selectedField.filters.conditionList() : [];
1110+
let conditionList = this.selectedField ? this.selectedField.filters.conditionList() : [];
1111+
if (this.entities.length === 1 && !this.entities[0].name) {
1112+
conditionList = conditionList.filter(c => c !== 'in' && c !== 'notIn')
1113+
}
1114+
return conditionList;
11111115
}
11121116

11131117
/**

0 commit comments

Comments
 (0)