fix(date-picker): display warn/invalid icons in input with calendar (#1508)

Fixes #1498
This commit is contained in:
metonym 2022-10-03 19:07:48 -07:00 committed by GitHub
commit a657b6e334
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,6 @@
}}" }}"
on:paste on:paste
/> />
{#if !$hasCalendar}
{#if invalid} {#if invalid}
<WarningFilled <WarningFilled
class="bx--date-picker__icon bx--date-picker__icon--invalid" class="bx--date-picker__icon bx--date-picker__icon--invalid"
@ -149,8 +148,7 @@
class="bx--date-picker__icon bx--date-picker__icon--warn" class="bx--date-picker__icon bx--date-picker__icon--warn"
/> />
{/if} {/if}
{/if} {#if $hasCalendar && !invalid && !warn}
{#if $hasCalendar}
<Calendar <Calendar
class="bx--date-picker__icon" class="bx--date-picker__icon"
aria-label="{iconDescription}" aria-label="{iconDescription}"