diff --git a/src/utils/tooltipify.tsx b/src/utils/tooltipify.tsx index ec698aa198bb..fac117c8e8e0 100644 --- a/src/utils/tooltipify.tsx +++ b/src/utils/tooltipify.tsx @@ -53,11 +53,11 @@ export function tooltipifyLinks(rootNodes: ArrayLike, ignoredNodes: Ele const href = node.getAttribute("href"); const tooltip = - + {node.innerHTML} ; ReactDOM.render(tooltip, container); - node.parentNode.replaceChild(container, node); + node.replaceChildren(container) containers.push(container); tooltipified = true; }