fix(date-picker): hide helperText if invalid or warning state (#1759)

This commit is contained in:
Ben Periton 2023-07-03 20:14:23 +01:00 committed by GitHub
commit d5a4a8b94a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,7 +162,7 @@
{#if !invalid && warn}
<div class:bx--form-requirement="{true}">{warnText}</div>
{/if}
{#if helperText}
{#if !invalid && !warn && helperText}
<div
class:bx--form__helper-text="{true}"
class:bx--form__helper-text--disabled="{disabled}"