Skip to content

Commit

Permalink
Fixed #6144 - Tree: checkbox selection, items where 'selectable:false…
Browse files Browse the repository at this point in the history
…' don't have a check box
  • Loading branch information
cagataycivici committed Feb 28, 2019
1 parent f59b25d commit 5dadcb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { ObjectUtils } from '../utils/objectutils';
(keydown)="onKeyDown($event)" [attr.aria-posinset]="this.index + 1" [attr.aria-expanded]="this.node.expanded" [attr.aria-selected]="isSelected()">
<span class="ui-tree-toggler pi pi-fw ui-unselectable-text" [ngClass]="{'pi-caret-right':!node.expanded,'pi-caret-down':node.expanded}"
(click)="toggle($event)"></span
><div class="ui-chkbox" *ngIf="tree.selectionMode == 'checkbox' && node.selectable !== false"><div class="ui-chkbox-box ui-widget ui-corner-all ui-state-default">
><div class="ui-chkbox" *ngIf="tree.selectionMode == 'checkbox'"><div class="ui-chkbox-box ui-widget ui-corner-all ui-state-default" [ngClass]="{'ui-state-disabled': node.selectable === false}">
<span class="ui-chkbox-icon ui-clickable pi"
[ngClass]="{'pi-check':isSelected(),'pi-minus':node.partialSelected}"></span></div></div
><span [class]="getIcon()" *ngIf="node.icon||node.expandedIcon||node.collapsedIcon"></span
Expand Down

0 comments on commit 5dadcb4

Please sign in to comment.