mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 15:45:43 -06:00
SectionHeader: Fix "Go to Folder" link not working (#44593)
This commit is contained in:
parent
9247848a7b
commit
9e6b9215ab
@ -32,6 +32,10 @@ export const CollapsableSection: FC<Props> = ({
|
||||
const styles = useStyles2(collapsableSectionStyles);
|
||||
const tooltip = `Click to ${open ? 'collapse' : 'expand'}`;
|
||||
const onClick = (e: React.MouseEvent) => {
|
||||
if (e.target instanceof HTMLElement && e.target.tagName === 'A') {
|
||||
return;
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user