Skip to content

Commit d4de3f2

Browse files
committed
Fix Context Menu closing before handling an action
1 parent 00ca80c commit d4de3f2

File tree

1 file changed

+1
-0
lines changed
  • packages/app/src/app/components/ContextMenu

1 file changed

+1
-0
lines changed

packages/app/src/app/components/ContextMenu/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class ContextMenu extends React.PureComponent {
126126
color={item.color}
127127
onMouseDown={e => {
128128
e.preventDefault();
129+
e.stopPropagation();
129130
}}
130131
onMouseUp={e => {
131132
if (item.action()) {

0 commit comments

Comments
 (0)