From 189277003236215b81f8c18a190ef70d61b72f9f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 19 Jan 2023 19:52:49 +0000 Subject: [PATCH] Fix links not working with click handlers --- .../src/FancyForm/FancyButtonRadio.svelte | 63 +++++++++++++++++++ packages/bbui/src/Link/Link.svelte | 2 +- 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 packages/bbui/src/FancyForm/FancyButtonRadio.svelte diff --git a/packages/bbui/src/FancyForm/FancyButtonRadio.svelte b/packages/bbui/src/FancyForm/FancyButtonRadio.svelte new file mode 100644 index 0000000000..0fe9131a0b --- /dev/null +++ b/packages/bbui/src/FancyForm/FancyButtonRadio.svelte @@ -0,0 +1,63 @@ + + + + {#if label} + {label} + {/if} + +
+ {#each options as option} + onChange(getOptionValue(option))} + > + {getOptionLabel(option)} + + {/each} +
+
+ + diff --git a/packages/bbui/src/Link/Link.svelte b/packages/bbui/src/Link/Link.svelte index 8ad722d553..ea9496ba72 100644 --- a/packages/bbui/src/Link/Link.svelte +++ b/packages/bbui/src/Link/Link.svelte @@ -15,7 +15,7 @@ e.stopPropagation() && dispatch(e)} + on:click={e => dispatch("click") && e.stopPropagation()} {href} {target} {download}