Skip to content

Commit f496423

Browse files
committed
1 parent c4379a8 commit f496423

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ var CodeMirror = function (_React$Component) {
186186

187187
if (this.props.value !== nextProps.value) {
188188
this.hydrated = false;
189+
}
189190

190-
if (!this.props.resetCursorOnSet) {
191-
this.cursorPos = this.editor.getCursor();
192-
}
191+
if (!this.props.resetCursorOnSet) {
192+
this.cursorPos = this.editor.getCursor();
193193
}
194194

195195
this.hydrate(nextProps);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-codemirror2",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"description": "a tiny react codemirror component wrapper",
55
"main": "index.js",
66
"scripts": {

src/react-codemirror2.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ export default class CodeMirror extends React.Component {
158158

159159
if (this.props.value !== nextProps.value) {
160160
this.hydrated = false;
161+
}
161162

162-
if (!this.props.resetCursorOnSet) {
163-
this.cursorPos = this.editor.getCursor();
164-
}
163+
if (!this.props.resetCursorOnSet) {
164+
this.cursorPos = this.editor.getCursor();
165165
}
166166

167167
this.hydrate(nextProps);

0 commit comments

Comments
 (0)