disable drag on message body to fix drag overlay bug

pull/1839/head
audric 4 years ago
parent 88dc5bf653
commit ac40143ad0

@ -79,7 +79,18 @@ export class MessageBody extends React.Component<Props> {
};
public renderJsxSelectable(jsx: JSX.Element): JSX.Element {
return <span className="text-selectable">{jsx}</span>;
return (
<span
className="text-selectable"
onDragStart={(e: any) => {
e.preventDefault();
e.stopPropagation();
return false;
}}
>
{jsx}
</span>
);
}
public render() {

Loading…
Cancel
Save