mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
parent
3277527929
commit
a522a55596
1 changed files with 6 additions and 0 deletions
|
@ -234,6 +234,12 @@
|
||||||
{datePickerType === 'range' &&
|
{datePickerType === 'range' &&
|
||||||
$labelTextEmpty &&
|
$labelTextEmpty &&
|
||||||
'bx--date-picker--nolabel'}"
|
'bx--date-picker--nolabel'}"
|
||||||
|
on:keydown="{(e) => {
|
||||||
|
if (calendar?.isOpen && e.key === 'Escape') {
|
||||||
|
e.stopPropagation();
|
||||||
|
calendar.close();
|
||||||
|
}
|
||||||
|
}}"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue