Closed gtm-nayan closed 7 months ago
The use of preventDefault on this line https://github.com/carbon-design-system/carbon-components-svelte/blob/65904575743ba06344fb75e14685e42494c13cde/src/ContextMenu/ContextMenu.svelte#L141
applies to contextmenu events anywhere on the page, so even if you right click somewhere on the page that's not inside the target, it'll prevent the browser's context menu from opening
This is a major bug, thanks for reporting.
Fixed in v0.82.9
The use of preventDefault on this line https://github.com/carbon-design-system/carbon-components-svelte/blob/65904575743ba06344fb75e14685e42494c13cde/src/ContextMenu/ContextMenu.svelte#L141
applies to contextmenu events anywhere on the page, so even if you right click somewhere on the page that's not inside the target, it'll prevent the browser's context menu from opening