Skip to content

Commit 4a367af

Browse files
author
minjk-bl
committed
prevent menu appearing on empty space of block
1 parent 5921033 commit 4a367af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)