diff --git a/src/components/TooltipController/TooltipController.tsx b/src/components/TooltipController/TooltipController.tsx index 17463631..f22e4c64 100644 --- a/src/components/TooltipController/TooltipController.tsx +++ b/src/components/TooltipController/TooltipController.tsx @@ -309,7 +309,9 @@ const TooltipController = React.forwardRef( let renderedContent: ChildrenType = children const contentWrapperRef = useRef(null) if (render) { - const rendered = render({ content: tooltipContent ?? null, activeAnchor }) as React.ReactNode + const actualContent = + activeAnchor?.getAttribute('data-tooltip-content') || tooltipContent || null + const rendered = render({ content: actualContent, activeAnchor }) as React.ReactNode renderedContent = rendered ? (
{rendered}