Fixed #576: Visualization in mode `view` when an array with more than 100 items is rendered

This commit is contained in:
jos 2018-09-06 20:24:18 +02:00
parent 36f79de242
commit c680a1ca4c
2 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,8 @@ https://github.com/josdejong/jsoneditor
## not yet released, version 5.24.4 ## 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 - Fixed JSONEditor not working on IE11: continue and throw console
errors when `Promise` is undefined. errors when `Promise` is undefined.
- Fixed `onClose` of color picker not being fired when clicking outside - Fixed `onClose` of color picker not being fired when clicking outside

View File

@ -79,8 +79,10 @@ function showMoreNodeFactory(Node) {
tdContents.appendChild(moreContents); tdContents.appendChild(moreContents);
var moreTr = document.createElement('tr'); var moreTr = document.createElement('tr');
moreTr.appendChild(document.createElement('td')); if (this.editor.options.mode === 'tree') {
moreTr.appendChild(document.createElement('td')); moreTr.appendChild(document.createElement('td'));
moreTr.appendChild(document.createElement('td'));
}
moreTr.appendChild(tdContents); moreTr.appendChild(tdContents);
moreTr.className = 'jsoneditor-show-more'; moreTr.className = 'jsoneditor-show-more';
this.dom.tr = moreTr; this.dom.tr = moreTr;