mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 03:49:34 +00:00
fix(dropdown): close the menu when pressing "Escape"
This commit is contained in:
parent
7030300186
commit
3c704bf791
1 changed files with 2 additions and 0 deletions
|
@ -236,6 +236,8 @@
|
||||||
change(1);
|
change(1);
|
||||||
} else if (key === 'ArrowUp') {
|
} else if (key === 'ArrowUp') {
|
||||||
change(-1);
|
change(-1);
|
||||||
|
} else if (key === 'Escape') {
|
||||||
|
open = false;
|
||||||
}
|
}
|
||||||
}}"
|
}}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue