Fixed a bug in positioning of the context menu for multiple selected nodes
This commit is contained in:
parent
2a722419b1
commit
593c6bd528
|
@ -5,6 +5,7 @@ https://github.com/josdejong/jsoneditor
|
||||||
|
|
||||||
## not yet released, version 5.0.1
|
## 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 #130: option `onEditable` not available in mode `form`.
|
||||||
- Fixed #202: removed `version` field from bower.json.
|
- Fixed #202: removed `version` field from bower.json.
|
||||||
|
|
||||||
|
|
|
@ -653,7 +653,7 @@ treemode._onEvent = function (event) {
|
||||||
if (node && node.selected) {
|
if (node && node.selected) {
|
||||||
if (event.type == 'click') {
|
if (event.type == 'click') {
|
||||||
if (event.target == node.dom.menu) {
|
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)
|
// stop propagation (else we will open the context menu of a single node)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue