diff --git a/HISTORY.md b/HISTORY.md index 4944983..12f94ca 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -3,6 +3,11 @@ https://github.com/josdejong/jsoneditor +## 2018-08-02, version 5.19.2 + +- Fixed #558: scrolling to search results broken (regression since v5.19.1). + + ## 2018-07-28, version 5.19.1 - Fixed #557: inner contents of the scrollable area being displayed outside of diff --git a/src/js/treemode.js b/src/js/treemode.js index ba832d1..e6d9f64 100644 --- a/src/js/treemode.js +++ b/src/js/treemode.js @@ -618,7 +618,7 @@ treemode.getDomSelection = function () { * when not. */ treemode.scrollTo = function (top, callback) { - var content = this.content; + var content = this.scrollableContent; if (content) { var editor = this; // cancel any running animation