From ac1594c3ffe6192a340c0acdb66e6e6c1947ef38 Mon Sep 17 00:00:00 2001 From: Arman Date: Wed, 23 Aug 2023 11:02:50 +0200 Subject: [PATCH] fix: inputchoice empty div --- src/lib/elements/forms/inputChoice.svelte | 40 +++++++++++++---------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/src/lib/elements/forms/inputChoice.svelte b/src/lib/elements/forms/inputChoice.svelte index b6f113270..b8d5215be 100644 --- a/src/lib/elements/forms/inputChoice.svelte +++ b/src/lib/elements/forms/inputChoice.svelte @@ -40,24 +40,28 @@ on:invalid={handleInvalid} />
-
-
- {label} -
- {#if tooltip} - - {/if} -
+ {#if (label && showLabel) || tooltip} +
+ {#if label} +
+ {label} +
+ {/if} + {#if tooltip} + + {/if} +
+ {/if} {#if $$slots.default}

{/if}