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

Fixes #1208
This commit is contained in:
metonym 2022-03-25 06:50:26 -07:00 committed by GitHub
commit 5e67c707d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}"