Skip to content

Commit

Permalink
fix: primefaces#17171 Fix tree inline style overridde
Browse files Browse the repository at this point in the history
  • Loading branch information
aimanicose committed Dec 22, 2024
1 parent f565b51 commit b415692
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/primeng/src/tree/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,9 @@ export class Tree extends BaseComponent implements OnInit, AfterContentInit, OnC
node.style = '--p-focus-ring-color: none;';
return;
} else {
node.style = '--p-focus-ring-color: var(--primary-color)';
if (!node.style?.includes('--p-focus-ring-color')) {
node.style = node.style ? `${node.style}--p-focus-ring-color: var(--primary-color)` : '--p-focus-ring-color: var(--primary-color)';
}
}

if (this.hasFilteredNodes()) {
Expand Down

0 comments on commit b415692

Please sign in to comment.