From b415692a0c86e7dd233363fc5b8602b0876fa908 Mon Sep 17 00:00:00 2001 From: Aimane Date: Sun, 22 Dec 2024 01:17:34 +0100 Subject: [PATCH] fix: #17171 Fix tree inline style overridde --- packages/primeng/src/tree/tree.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/primeng/src/tree/tree.ts b/packages/primeng/src/tree/tree.ts index 4eab8f93cf..1c7d92ea99 100755 --- a/packages/primeng/src/tree/tree.ts +++ b/packages/primeng/src/tree/tree.ts @@ -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()) {