DashboardLinks: Fixes another issue where dashboard links cause full page reload (#31334)
This commit is contained in:
@@ -40,7 +40,7 @@ export const DashboardLinksDashboard: React.FC<Props> = (props) => {
|
||||
<li key={`dashlinks-dropdown-item-${resolvedLink.id}-${index}`}>
|
||||
<a
|
||||
href={resolvedLink.url}
|
||||
target={link.targetBlank ? '_blank' : '_self'}
|
||||
target={link.targetBlank ? '_blank' : undefined}
|
||||
aria-label={selectors.components.DashboardLinks.link}
|
||||
>
|
||||
{resolvedLink.title}
|
||||
@@ -67,7 +67,7 @@ export const DashboardLinksDashboard: React.FC<Props> = (props) => {
|
||||
<a
|
||||
className="gf-form-label gf-form-label--dashlink"
|
||||
href={resolvedLink.url}
|
||||
target={link.targetBlank ? '_blank' : '_self'}
|
||||
target={link.targetBlank ? '_blank' : undefined}
|
||||
aria-label={selectors.components.DashboardLinks.link}
|
||||
>
|
||||
<Icon name="apps" style={{ marginRight: '4px' }} />
|
||||
|
||||
Reference in New Issue
Block a user