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