mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
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:
parent
c375d645b8
commit
77f31ea80f
1 changed files with 1 additions and 4 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue