From 2a1367c66100c3c42fe9f34c753360b69e22c2d9 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 30 Oct 2020 16:02:44 +0300 Subject: [PATCH] Fixed #1657 - When a partial selection is made among children of a node, the minus icon doesn't appear in the checkbox of that node. --- src/components/treetable/TreeTableRow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/treetable/TreeTableRow.js b/src/components/treetable/TreeTableRow.js index 50b0ba3bc6..df98be0734 100644 --- a/src/components/treetable/TreeTableRow.js +++ b/src/components/treetable/TreeTableRow.js @@ -473,7 +473,7 @@ export class TreeTableRow extends Component { if (this.props.selectionMode === 'checkbox' && this.props.node.selectable !== false) { const checked = this.isChecked(); const partialChecked = this.isPartialChecked(); - const className = classNames('p-checkbox-box', {'p-highlight': checked}); + const className = classNames('p-checkbox-box', {'p-highlight': checked, 'p-indeterminate': partialChecked}); const icon = classNames('p-checkbox-icon p-c', {'pi pi-check': checked, 'pi pi-minus': partialChecked}); return (