From 359f5e0d7100c8e3755b5016a2dd1fd5b0a2a116 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Thu, 21 Jul 2022 20:51:00 +0200 Subject: [PATCH] Unbreak in-app permalink tooltips Fixes: vector-im/element-web#22874 Signed-off-by: Johannes Marbach --- src/utils/tooltipify.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }