From e4073905a56ea785cceb0400e147fe3c78867317 Mon Sep 17 00:00:00 2001 From: jos Date: Tue, 5 Jul 2016 20:09:34 +0200 Subject: [PATCH] Fixed #308: wrong positioning of label "empty array" when `onEditable` returns false --- HISTORY.md | 6 ++++++ src/js/appendNodeFactory.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index e5399ba..9c2cc7e 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,6 +3,12 @@ https://github.com/josdejong/jsoneditor +## not yet released, version 5.5.7 + +- Fixed #308: wrong positioning of label "empty array" when `onEditable` + returns false. + + ## 2016-06-15, version 5.5.6 - Fixed #303: editor contents collapsed when the parent div of the JSONEditor diff --git a/src/js/appendNodeFactory.js b/src/js/appendNodeFactory.js index 48da1d3..12b7466 100644 --- a/src/js/appendNodeFactory.js +++ b/src/js/appendNodeFactory.js @@ -44,7 +44,7 @@ function appendNodeFactory(Node) { // TODO: consistent naming - if (this.editable.field) { + if (this.editor.options.mode === 'tree') { // a cell for the dragarea column dom.tdDrag = document.createElement('td');