From 4422e30998eff5982cd4b66a0eaad522f70a4896 Mon Sep 17 00:00:00 2001 From: Felipe Ceotto Date: Thu, 29 Jun 2017 10:25:52 +0100 Subject: [PATCH] Fix #3246 by adding a ui-treenode-content-selected class to the ui-treenode-content div when a node is selected. This allows someone to style the entire node div, not just the internal span, when a node is selected. --- src/app/components/tree/tree.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/tree/tree.ts b/src/app/components/tree/tree.ts index e86b68b19d3..cd8f99b7291 100644 --- a/src/app/components/tree/tree.ts +++ b/src/app/components/tree/tree.ts @@ -42,7 +42,7 @@ export class TreeNodeTemplateLoader implements OnInit, OnDestroy {
  • + [ngClass]="{'ui-treenode-selectable':tree.selectionMode && node.selectable !== false,'ui-treenode-dragover':draghoverNode, 'ui-treenode-content-selected':isSelected()}" [draggable]="tree.draggableNodes" (dragstart)="onDragStart($event)" (dragend)="onDragStop($event)">