mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
fix(multi-select): pressing "Escape" should close the menu
This commit is contained in:
parent
e827fe0a23
commit
4b64c30916
1 changed files with 2 additions and 0 deletions
|
@ -339,6 +339,8 @@
|
||||||
return { ...item, checked: !item.checked };
|
return { ...item, checked: !item.checked };
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
} else if (key === 'Escape') {
|
||||||
|
open = false;
|
||||||
}
|
}
|
||||||
}}"
|
}}"
|
||||||
on:focus="{() => {
|
on:focus="{() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue