fix: Finicky clicking on file attachments
This commit is contained in:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user