fix: Finicky clicking on file attachments

This commit is contained in:
Tom Moor
2022-03-06 21:49:44 -08:00
parent cf446be2df
commit 9a7090d528

View File

@@ -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())) {