Update react-collapse which was needlessly updating and causing scroll position jump.

This commit is contained in:
orangemug
2020-01-18 22:03:29 +00:00
parent 4dbb423ac2
commit 9cadda0236
3 changed files with 4 additions and 18 deletions

View File

@@ -105,17 +105,6 @@ class JSONEditor extends React.Component {
}
render() {
const codeMirrorOptions = {
mode: {name: "javascript", json: true},
tabSize: 2,
theme: 'maputnik',
viewportMargin: Infinity,
lineNumbers: true,
lint: true,
gutters: ["CodeMirror-lint-markers"],
scrollbarStyle: "null",
}
const style = {};
if (this.props.maxHeight) {
style.maxHeight = this.props.maxHeight;