From e5a90658b8dc98a82fe2d270c97f4f39594f6cdd Mon Sep 17 00:00:00 2001 From: Jorens Merenjanu Date: Sun, 31 Mar 2024 12:00:36 +0300 Subject: [PATCH] fix: fix links not working properly in --- src/lib/components/dialog/Dialog.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/components/dialog/Dialog.svelte b/src/lib/components/dialog/Dialog.svelte index 338edb9f..3b3b68b4 100644 --- a/src/lib/components/dialog/Dialog.svelte +++ b/src/lib/components/dialog/Dialog.svelte @@ -254,7 +254,13 @@ function handleClick(e: CustomEvent) { let event = e as any as MouseEvent; - event.stopPropagation(); + /* Can't stop propogation for elements + because they rely on a native Svelte event handler + to work properly */ + if (e.target.tagName != "A") { + event.stopPropagation(); + } + } $: propsWeControl = {