Skip to content

Commit

Permalink
Fix context menu popping up empty if no interactions possible
Browse files Browse the repository at this point in the history
  • Loading branch information
werrolf committed Jan 20, 2023
1 parent 37ef70d commit edf2210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/public/contextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
});
var menuItems = feature && self.getMenuItems(feature);
if (menuItems) {
if (menuItems && menuItems.length) {
evt.stopPropagation();
evt.preventDefault();
self.showMenu(evt, pixel, menuItems);
Expand Down

0 comments on commit edf2210

Please sign in to comment.