From 2a46ff78bb1f1c88dd54dd3f7e91cdfca6ae8553 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Mon, 4 Apr 2022 20:53:39 +0200 Subject: [PATCH] fix --- packages/web/src/elements/Link.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/src/elements/Link.svelte b/packages/web/src/elements/Link.svelte index ed9d16d5..84e9058a 100644 --- a/packages/web/src/elements/Link.svelte +++ b/packages/web/src/elements/Link.svelte @@ -6,8 +6,8 @@ { - if (onClick) onClick(); + on:click={(e) => { + if (onClick) onClick(e); else openWebLink(href); }} >