mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
fix(multi-select): close the menu when pressing "Escape"
This commit is contained in:
parent
3c704bf791
commit
69c4efd559
1 changed files with 2 additions and 0 deletions
|
@ -368,6 +368,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