fix(overflow-menu): type dispatched close event

This commit is contained in:
Eric Liu 2020-12-05 17:00:29 -08:00
commit 4967d49b03
5 changed files with 25 additions and 13 deletions

View file

@ -3,7 +3,11 @@
import Add16 from "carbon-icons-svelte/lib/Add16";
</script>
<OverflowMenu>
<OverflowMenu
on:close="{(e) => {
console.log(e.detail); // { index: number; text: string; }
}}"
>
<OverflowMenuItem text="Manage credentials" />
<OverflowMenuItem
href="https://cloud.ibm.com/docs/api-gateway/"