mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(ui-shell): prevent default behavior when pressing Space (#1084)
This commit is contained in:
parent
2148e1c7b6
commit
a3c329a2e8
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@
|
|||
style="{$$restProps.style}; z-index: 1"
|
||||
on:keydown
|
||||
on:keydown="{(e) => {
|
||||
if (e.key === ' ') e.preventDefault();
|
||||
if (e.key === 'Enter' || e.key === ' ') {
|
||||
expanded = !expanded;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue