diff --git a/ts/components/conversation/Message.dom.tsx b/ts/components/conversation/Message.dom.tsx index faad9c7724..bbfb2092d1 100644 --- a/ts/components/conversation/Message.dom.tsx +++ b/ts/components/conversation/Message.dom.tsx @@ -3007,7 +3007,7 @@ export class Message extends PureComponent { this.setState(oldState => { const { reactionViewerRoot } = oldState; if (reactionViewerRoot) { - document.body.removeChild(reactionViewerRoot); + reactionViewerRoot.parentNode?.removeChild(reactionViewerRoot); oldState.reactionViewerOutsideClickDestructor?.();