diff --git a/HISTORY.md b/HISTORY.md index 3e9053b..ee0d716 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -5,6 +5,7 @@ https://github.com/josdejong/jsoneditor ## not yet released, version 5.0.1 +- Fixed a bug in positioning of the context menu for multiple selected nodes. - Fixed #130: option `onEditable` not available in mode `form`. - Fixed #202: removed `version` field from bower.json. diff --git a/src/js/treemode.js b/src/js/treemode.js index d39366d..d413c58 100644 --- a/src/js/treemode.js +++ b/src/js/treemode.js @@ -653,7 +653,7 @@ treemode._onEvent = function (event) { if (node && node.selected) { if (event.type == 'click') { if (event.target == node.dom.menu) { - this.showContextMenu(event.target.parentNode); + this.showContextMenu(event.target); // stop propagation (else we will open the context menu of a single node) return;