Update PasswordInput.svelte

If no labelText is given, label should not be rendered
This commit is contained in:
Malte Heinzelmann 2022-02-19 23:35:07 +01:00 committed by GitHub
commit c383a4365b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,7 +128,8 @@
{helperText}
</div>
{/if}
{:else}
{/if}
{#if !inline && labelText}
<label
for="{id}"
class:bx--label="{true}"