Fixed a bug in positioning of the context menu for multiple selected nodes

This commit is contained in:
jos 2015-12-31 15:04:32 +01:00
parent 2a722419b1
commit 593c6bd528
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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;