fix: slottable labelText should correctly render (#1110)

This commit is contained in:
metonym 2022-02-19 18:24:26 -08:00 committed by GitHub
commit 7c0086d00c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@
</div> </div>
{/if} {/if}
{/if} {/if}
{#if !inline && labelText} {#if !inline && (labelText || $$slots.labelText)}
<label <label
for="{id}" for="{id}"
class:bx--label="{true}" class:bx--label="{true}"

View file

@ -138,7 +138,7 @@
{/if} {/if}
</div> </div>
{/if} {/if}
{#if !inline && labelText} {#if !inline && (labelText || $$slots.labelText)}
<label <label
for="{id}" for="{id}"
class:bx--label="{true}" class:bx--label="{true}"