fix(date-picker-input): avoid opening calendar if input is descendant of disabled fieldset #857

This commit is contained in:
Eric Liu 2021-10-17 12:44:10 -07:00
commit 301167a1b0

View file

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