Attempt to fix Failed to execute 'removeChild' on 'Node' (#9196)
* Switch tooltips to use React Portals * Remove redundant React key to simplify reconciliation * Fix cleanup and it.each test * Update snapshots due to style order difference
This commit is contained in:
committed by
GitHub
parent
3461573df9
commit
27a7263965
@@ -632,13 +632,13 @@ export function topicToHtml(
|
||||
emojiBodyElements = formatEmojis(topic, false);
|
||||
}
|
||||
|
||||
return isFormattedTopic ?
|
||||
<span
|
||||
key="body"
|
||||
return isFormattedTopic
|
||||
? <span
|
||||
ref={ref}
|
||||
dangerouslySetInnerHTML={{ __html: safeTopic }}
|
||||
dir="auto"
|
||||
/> : <span key="body" ref={ref} dir="auto">
|
||||
/>
|
||||
: <span ref={ref} dir="auto">
|
||||
{ emojiBodyElements || topic }
|
||||
</span>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user