From f34577f293d4f66188a4728c4cff1d0c016f8a2f Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 13 Mar 2024 19:23:02 +0100 Subject: [PATCH] fix(editor): do not use Tiptap to open links when clicking on them, use the browser native attributes instead It looks like links are opened twice, when the openOnClick option is enabled. That means they will get opened twice when clicking on them. Disabling that option will not fire the click handler and only rely on browser functionality to open links. Resolves https://kolaente.dev/vikunja/vikunja/issues/2155 --- frontend/src/components/input/editor/TipTap.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/input/editor/TipTap.vue b/frontend/src/components/input/editor/TipTap.vue index 0213546f6..af4da5455 100644 --- a/frontend/src/components/input/editor/TipTap.vue +++ b/frontend/src/components/input/editor/TipTap.vue @@ -374,7 +374,7 @@ const editor = useEditor({ Typography, Underline, Link.configure({ - openOnClick: true, + openOnClick: false, validate: (href: string) => /^https?:\/\//.test(href), }), Table.configure({