Merge branch 'develop' into duplicate_key_errors_take2

This commit is contained in:
jos 2019-03-30 21:19:41 +01:00
commit 2a551117b2
2 changed files with 9 additions and 4 deletions

View File

@ -3,6 +3,11 @@
https://github.com/josdejong/jsoneditor
## not yet released, version 5.32.2
- Fixed #416: Clipped action menu for append nodes.
## 2018-03-28, version 5.32.1
- Fixed a regression in parsing JSON paths: numbers where parsed as strings

View File

@ -201,12 +201,12 @@ function appendNodeFactory(Node) {
}
];
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
}
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
}
var menu = new ContextMenu(items, {close: onClose});
menu.show(anchor, this.editor.content);
menu.show(anchor, this.editor.frame);
};
/**