diff --git a/src/app/components/tree/tree.ts b/src/app/components/tree/tree.ts index 8a69c548c94..4c07d023474 100755 --- a/src/app/components/tree/tree.ts +++ b/src/app/components/tree/tree.ts @@ -1248,7 +1248,10 @@ export class Tree implements OnInit, AfterContentInit, OnChanges, OnDestroy, Blo return; } else if (this.selectionMode) { if (node.selectable === false) { + node.style = '--p-focus-ring-color: none;'; return; + } else { + node.style = '--p-focus-ring-color: var(--primary-color)'; } if (this.hasFilteredNodes()) {