From 892c19a8ddb849a045e8dfd1e6e231e584a5e858 Mon Sep 17 00:00:00 2001 From: Bilux Date: Sun, 5 Sep 2021 21:25:32 +0100 Subject: [PATCH] Set a condition for showing legend in FormGroup (#785) We shouldn't add a If the the legend text specified. --- src/FormGroup/FormGroup.svelte | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/FormGroup/FormGroup.svelte b/src/FormGroup/FormGroup.svelte index 5f6fb8b0..c85f2143 100644 --- a/src/FormGroup/FormGroup.svelte +++ b/src/FormGroup/FormGroup.svelte @@ -30,10 +30,12 @@ on:mouseenter on:mouseleave > - {legendText} + {#if legendText} + {legendText} + {/if} {#if message}
{messageText}