Skip to content

Commit 9c91313

Browse files
author
minjk-bl
committed
prevent menu appearing on empty space of block
1 parent 2c9eea0 commit 9c91313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/board/Block.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ define([
9595
}
9696
});
9797
// right click event - blockMenu
98-
$(this.wrapSelector()).on('contextmenu', function(evt) {
98+
$(this.wrapSelector('.vp-block-header')).on('contextmenu', function(evt) {
9999
that.prop.parent.showMenu(that, evt.pageX, evt.pageY);
100100
evt.preventDefault();
101101
});

0 commit comments

Comments
 (0)