diff --git a/HISTORY.md b/HISTORY.md index b1f9cca..c87875f 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -5,6 +5,8 @@ https://github.com/josdejong/jsoneditor ## not yet released, version 5.24.4 +- Fixed #576: Visualization in mode `view` when an array + with more than 100 items is rendered. - Fixed JSONEditor not working on IE11: continue and throw console errors when `Promise` is undefined. - Fixed `onClose` of color picker not being fired when clicking outside diff --git a/src/js/showMoreNodeFactory.js b/src/js/showMoreNodeFactory.js index 60e378a..040aefd 100644 --- a/src/js/showMoreNodeFactory.js +++ b/src/js/showMoreNodeFactory.js @@ -79,8 +79,10 @@ function showMoreNodeFactory(Node) { tdContents.appendChild(moreContents); var moreTr = document.createElement('tr'); - moreTr.appendChild(document.createElement('td')); - moreTr.appendChild(document.createElement('td')); + if (this.editor.options.mode === 'tree') { + moreTr.appendChild(document.createElement('td')); + moreTr.appendChild(document.createElement('td')); + } moreTr.appendChild(tdContents); moreTr.className = 'jsoneditor-show-more'; this.dom.tr = moreTr;