From 7ef8b73252709130c8e269b83b2936e1631c96fa Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sun, 23 Jul 2023 12:19:21 -0700 Subject: [PATCH] fix(file-uploader): do not render empty element if `labelTitle`, `labelDescription` not provided (#1778) Fixes #1775 --- src/FileUploader/FileUploader.svelte | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/FileUploader/FileUploader.svelte b/src/FileUploader/FileUploader.svelte index 0c5e957ee0..168bbaa107 100644 --- a/src/FileUploader/FileUploader.svelte +++ b/src/FileUploader/FileUploader.svelte @@ -103,18 +103,22 @@ on:mouseenter on:mouseleave > -

- {labelTitle} -

-

- {labelDescription} -

+ {#if labelTitle} +

+ {labelTitle} +

+ {/if} + {#if labelDescription} +

+ {labelDescription} +

+ {/if}