Skip to content

Commit

Permalink
fix(ui): ContextMenu component leaks native click event causing <Cont…
Browse files Browse the repository at this point in the history
…extMenu @click="handleClick"> to receive pointer event as value at times - example, when you right click inside the open context menu item and click outside, the @click of ContextMenu receives pointer event as value

See: vuejs/core#2993 (comment)
  • Loading branch information
flawiddsouza committed Jan 3, 2025
1 parent 8d2471c commit 6eabb5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/ui/src/components/ContextMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function getContextMenuPostion(x, y, contextMenuElement, yOffset = 0, width = nu
import { nextTick } from 'vue'
export default {
emits: ['click', 'update:show'],
props: {
options: {
type: Array,
Expand Down

0 comments on commit 6eabb5f

Please sign in to comment.