From 78468e2b29428b60ab8c568ae1be47d6a5a3db75 Mon Sep 17 00:00:00 2001 From: Bilux Date: Wed, 11 Aug 2021 12:09:30 +0100 Subject: [PATCH] Set a condition for showing legend in FormGroup 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}