fix(web): correct color for active tree item (#12318)

* fix(web): correct color for active tree item

* remove white space
This commit is contained in:
Alex
2024-09-04 14:07:32 -05:00
committed by GitHub
parent f8211a128e
commit 0a8bd7dc66

View File

@@ -13,7 +13,7 @@
export let getColor: (path: string) => string | undefined;
$: path = normalizeTreePath(`${parent}/${value}`);
$: isActive = active.startsWith(path);
$: isActive = active === path || active.startsWith(`${path}/`);
$: isOpen = isActive;
$: isTarget = active === path;
$: color = getColor(path);