mirror of
https://github.com/outline/outline.git
synced 2026-11-22 22:02:35 +03:00
Allow middle click (#8725)
This commit is contained in:
1 parent
0a9e76f600
commit
ae249f720d
1 file changed
+4
-1
@@ -179,7 +179,10 @@ export default class Link extends Mark {
|
||||
},
|
||||
mousedown: (view: EditorView, event: MouseEvent) => {
|
||||
const target = (event.target as HTMLElement)?.closest("a");
|
||||
if (!(target instanceof HTMLAnchorElement) || event.button !== 0) {
|
||||
if (
|
||||
!(target instanceof HTMLAnchorElement) ||
|
||||
(event.button !== 0 && event.button !== 1)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user