GraphContextMenu: Fixes add annotation action & data links that cause full page reload (#31915)

* GraphContextMenu: Fixes add annotation action

* Fixed issue with data links causing full page reload

* A better solution to closing context menu
This commit is contained in:
Torkel Ödegaard
2021-03-12 07:25:14 +01:00
committed by GitHub
parent 34105a6db8
commit 82e9d59121
2 changed files with 4 additions and 9 deletions

View File

@@ -324,7 +324,7 @@ export class LinkSrv implements LinkService {
const info: LinkModel<T> = {
href: locationUtil.assureBaseUrl(href.replace(/\n/g, '')),
title: replaceVariables ? replaceVariables(link.title || '') : link.title,
target: link.targetBlank ? '_blank' : '_self',
target: link.targetBlank ? '_blank' : undefined,
origin,
onClick,
};