fix: slottable labelText should correctly render

This commit is contained in:
Eric Liu 2022-02-19 18:19:32 -08:00
commit 612508a576
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}"