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

This commit is contained in:
Eric Liu 2021-10-17 12:50:21 -07:00 committed by GitHub
commit b616243b7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>