Skip to content

Commit

Permalink
Fixed #1657 - When a partial selection is made among children of a no…
Browse files Browse the repository at this point in the history
…de, the minus icon doesn't appear in the checkbox of that node.
  • Loading branch information
mertsincan committed Oct 30, 2020
1 parent 8ce36ae commit 2a1367c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/treetable/TreeTableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 2a1367c

Please sign in to comment.