mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 04:01:55 +01:00
Update react-collapse which was needlessly updating and causing scroll position jump.
This commit is contained in:
parent
4dbb423ac2
commit
9cadda0236
3 changed files with 4 additions and 18 deletions
9
package-lock.json
generated
9
package-lock.json
generated
|
@ -9070,12 +9070,9 @@
|
|||
}
|
||||
},
|
||||
"react-collapse": {
|
||||
"version": "4.0.3",
|
||||
"resolved": "https://registry.npmjs.org/react-collapse/-/react-collapse-4.0.3.tgz",
|
||||
"integrity": "sha512-OO4NhtEqFtz+1ma31J1B7+ezdRnzHCZiTGSSd/Pxoks9hxrZYhzFEddeYt05A/1477xTtdrwo7xEa2FLJyWGCQ==",
|
||||
"requires": {
|
||||
"prop-types": "^15.5.8"
|
||||
}
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/react-collapse/-/react-collapse-5.0.1.tgz",
|
||||
"integrity": "sha512-cN2tkxBWizhPQ2JHfe0aUSJtmMthKA17NZkTElpiQ2snQAAi1hssXZ2fv88rAPNNvG5ss4t0PbOZT0TIl9Lk3Q=="
|
||||
},
|
||||
"react-color": {
|
||||
"version": "2.17.3",
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
"react-aria-modal": "^4.0.0",
|
||||
"react-autobind": "^1.0.6",
|
||||
"react-autocomplete": "^1.8.1",
|
||||
"react-collapse": "^4.0.3",
|
||||
"react-collapse": "^5.0.1",
|
||||
"react-color": "^2.17.3",
|
||||
"react-dom": "^16.10.2",
|
||||
"react-file-reader-input": "^2.0.0",
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue