mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-25 05:54:26 +08:00
fix(FE): tooltip link not opening in apdex tooltip (#3441)
* Fix tooltip link not opening in apdex tooltip modal * chore: onClick is updated from inline to one to one --------- Co-authored-by: Palash Gupta <palashgdev@gmail.com>
This commit is contained in:
parent
988dd1bcf0
commit
337e33eb8a
@ -18,12 +18,24 @@ function TextToolTip({
|
||||
}: TextToolTipProps): JSX.Element {
|
||||
const isDarkMode = useIsDarkMode();
|
||||
|
||||
const onClickHandler = (
|
||||
event: React.MouseEvent<HTMLAnchorElement, MouseEvent>,
|
||||
): void => {
|
||||
event.stopPropagation();
|
||||
};
|
||||
|
||||
const overlay = useMemo(
|
||||
() => (
|
||||
<div>
|
||||
{`${text} `}
|
||||
{url && (
|
||||
<a href={url} rel="noopener noreferrer" target="_blank">
|
||||
<a
|
||||
// Stopping event propagation on click so that parent click listener are not triggered
|
||||
onClick={onClickHandler}
|
||||
href={url}
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
{urlText || 'here'}
|
||||
</a>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user