diff --git a/libs/platform/src/lib/table-helpers/helpers.ts b/libs/platform/src/lib/table-helpers/helpers.ts index ffb5636365a..13ac23d8522 100644 --- a/libs/platform/src/lib/table-helpers/helpers.ts +++ b/libs/platform/src/lib/table-helpers/helpers.ts @@ -148,7 +148,8 @@ export function convertTreeObjectsToTableRows( hasChildrenKey: string, selectedKey: string, expandedStateKey: string, - rowNavigatable: string | boolean + rowNavigatable: string | boolean, + enableTristateMode = false ): TableRow[] { const rows: TableRow[] = []; const selectedRowsMap = getSelectionStatusByRowValue(source, selectionMode, tableRows, rowComparator); @@ -185,7 +186,8 @@ export function convertTreeObjectsToTableRows( hasChildrenKey, selectedKey, expandedStateKey, - rowNavigatable + rowNavigatable, + enableTristateMode ); children.forEach((c) => { @@ -216,6 +218,9 @@ export function convertTreeObjectsToTableRows( applySelectionToChildren(rows, r, [], []); return; } + if (!enableTristateMode) { + return; + } if (selectedAll) { r.checked = true; return; diff --git a/libs/platform/src/lib/table/table.component.ts b/libs/platform/src/lib/table/table.component.ts index 61452cbf2bc..844fc1a125f 100644 --- a/libs/platform/src/lib/table/table.component.ts +++ b/libs/platform/src/lib/table/table.component.ts @@ -1779,7 +1779,8 @@ export class TableComponent this.hasChildrenKey, this.selectedKey, this.expandedStateKey, - this.rowNavigatable + this.rowNavigatable, + this.enableTristateMode ); } return [];