Skip to content

Commit 692a3de

Browse files
committed
#68, devdeps
1 parent a78ade3 commit 692a3de

File tree

5 files changed

+47
-46
lines changed

5 files changed

+47
-46
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: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-codemirror2",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"description": "a tiny react codemirror component wrapper",
55
"main": "index.js",
66
"typings": "index.d.ts",
@@ -67,7 +67,7 @@
6767
"babel-preset-react": "6.24.1",
6868
"codemirror": "5.35.0",
6969
"coveralls": "3.0.0",
70-
"css-loader": "0.28.10",
70+
"css-loader": "0.28.11",
7171
"enzyme": "3.3.0",
7272
"enzyme-adapter-react-16": "1.1.1",
7373
"express": "4.16.3",
@@ -86,7 +86,7 @@
8686
"redux": "3.7.2",
8787
"rimraf": "2.6.2",
8888
"sass-loader": "6.0.7",
89-
"sinon": "4.4.5",
89+
"sinon": "4.4.6",
9090
"style-loader": "0.20.3",
9191
"ts-jest": "22.4.1",
9292
"typescript": "2.7.2",

src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export interface IDoc extends codemirror.Doc {
4141
export interface IInstance extends codemirror.Editor, IDoc {
4242
options: codemirror.EditorConfiguration
4343
}
44+
4445
/* </tshacks> */
4546

4647
export interface ICodeMirror {
@@ -673,7 +674,7 @@ export class UnControlled extends React.Component<IUnControlledCodeMirror, any>
673674

674675
this.editor.on('change', (cm, data) => {
675676

676-
if (!this.mounted) {
677+
if (!this.mounted || !this.props.onChange) {
677678
return;
678679
}
679680

0 commit comments

Comments
 (0)