fix(number-input): slotted label should render correctly

Fixes #1208
This commit is contained in:
Eric Liu 2022-03-25 06:14:19 -07:00
commit f99a92c842

View file

@ -178,7 +178,7 @@
class="{size && `bx--number--${size}`}"
>
{#if mobile}
{#if label}
{#if $$slots.label || label}
<label
for="{id}"
class:bx--label="{true}"
@ -243,7 +243,7 @@
</button>
</div>
{:else}
{#if label}
{#if $$slots.label || label}
<label
for="{id}"
class:bx--label="{true}"