mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
parent
be7bbeda03
commit
93da919951
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (didOpen && !open) {
|
if (didOpen && !open) {
|
||||||
buttonRef.focus();
|
|
||||||
items.set([]);
|
items.set([]);
|
||||||
currentId.set(undefined);
|
currentId.set(undefined);
|
||||||
currentIndex.set(0);
|
currentIndex.set(0);
|
||||||
|
@ -186,6 +185,7 @@
|
||||||
} else if (e.key === 'Escape') {
|
} else if (e.key === 'Escape') {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
open = false;
|
open = false;
|
||||||
|
buttonRef.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}}">
|
}}">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue