mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
feat(context-menu): include clicked element in "open" event detail
This commit is contained in:
parent
f603106b18
commit
c43da25e43
5 changed files with 16 additions and 10 deletions
|
@ -15,7 +15,7 @@
|
|||
$: console.log("selectedId", selectedId);
|
||||
</script>
|
||||
|
||||
<ContextMenu>
|
||||
<ContextMenu open on:open="{(e) => console.log(e.detail)}">
|
||||
<ContextMenuOption
|
||||
kind="danger"
|
||||
indented
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue