mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(date-picker-input): avoid opening calendar if input is descendant of disabled fieldset #857 (#860)
This commit is contained in:
parent
5a96f3f49d
commit
b616243b7f
1 changed files with 4 additions and 1 deletions
|
@ -154,7 +154,10 @@
|
|||
class="bx--date-picker__icon"
|
||||
aria-label="{iconDescription}"
|
||||
title="{iconDescription}"
|
||||
on:click="{openCalendar}"
|
||||
on:click="{() => {
|
||||
if (disabled || ref.matches(':disabled')) return;
|
||||
openCalendar();
|
||||
}}"
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue