Fix #638: cannot expand after collapse

This commit is contained in:
jos 2019-01-22 20:27:23 +01:00
parent 3334241ab9
commit 958463a9cd
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,11 @@
https://github.com/josdejong/jsoneditor https://github.com/josdejong/jsoneditor
## not yet released, version 5.28.1
- Fix #638: cannot expand after collapse. Regression introduced in v5.28.0.
## 2019-01-21, version 5.28.0 ## 2019-01-21, version 5.28.0
- Implemented new option `maxVisibleChilds` to customize the maximum number - Implemented new option `maxVisibleChilds` to customize the maximum number

View File

@ -910,7 +910,7 @@ Node.prototype.hideChilds = function(options) {
// reset max visible childs // reset max visible childs
if (!options || options.resetVisibleChilds) { if (!options || options.resetVisibleChilds) {
delete this.visibleChilds; this.visibleChilds = this.getMaxVisibleChilds();
} }
}; };
/** /**