diff --git a/shared/editor/marks/Link.tsx b/shared/editor/marks/Link.tsx index 5011e3ef6..b9a25d5ea 100644 --- a/shared/editor/marks/Link.tsx +++ b/shared/editor/marks/Link.tsx @@ -176,6 +176,10 @@ export default class Link extends Mark { return false; } + if (event.target.classList.contains("attachment")) { + return false; + } + // clicking a link while editing should show the link toolbar, // clicking in read-only will navigate if (!view.editable || (view.editable && !view.hasFocus())) {