From ac40143ad0a252d81095abbedaf83c48de811f2c Mon Sep 17 00:00:00 2001 From: audric Date: Fri, 13 Aug 2021 11:44:52 +1000 Subject: [PATCH] disable drag on message body to fix drag overlay bug --- ts/components/conversation/MessageBody.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ts/components/conversation/MessageBody.tsx b/ts/components/conversation/MessageBody.tsx index a68e2622d..81892f53e 100644 --- a/ts/components/conversation/MessageBody.tsx +++ b/ts/components/conversation/MessageBody.tsx @@ -79,7 +79,18 @@ export class MessageBody extends React.Component { }; public renderJsxSelectable(jsx: JSX.Element): JSX.Element { - return {jsx}; + return ( + { + e.preventDefault(); + e.stopPropagation(); + return false; + }} + > + {jsx} + + ); } public render() {