mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
54290f2ac4
commit
a10dcf9661
@ -86,7 +86,7 @@ export function ContentOutline({ scroller, panelId }: { scroller: HTMLElement |
|
||||
return childTop && childTop >= offsetTop;
|
||||
});
|
||||
|
||||
if (activeChild) {
|
||||
if (activeChild && isCollapsible(item)) {
|
||||
setActiveSectionChildId(activeChild.id);
|
||||
setActiveSectionId(item.id);
|
||||
break;
|
||||
@ -95,6 +95,10 @@ export function ContentOutline({ scroller, panelId }: { scroller: HTMLElement |
|
||||
if (activeItem) {
|
||||
setActiveSectionId(activeItem.id);
|
||||
setActiveSectionChildId(undefined);
|
||||
setSectionsExpanded((prev) => ({
|
||||
...prev,
|
||||
[item.id]: false,
|
||||
}));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user