refactor(date-picker): remove hotfix logic to prevent disabled icon from being clickable

Ref: https://github.com/carbon-design-system/carbon-components-svelte/pull/860
This commit is contained in:
Eric Liu 2022-01-20 19:49:21 -08:00
commit 77f31ea80f

View file

@ -154,10 +154,7 @@
class="bx--date-picker__icon" class="bx--date-picker__icon"
aria-label="{iconDescription}" aria-label="{iconDescription}"
title="{iconDescription}" title="{iconDescription}"
on:click="{() => { on:click="{openCalendar}"
if (disabled || ref.matches(':disabled')) return;
openCalendar();
}}"
/> />
{/if} {/if}
</div> </div>