Skip to content

Commit e58737e

Browse files
committed
Adding defaultValue propType, closes JedWatson#65
1 parent 6130672 commit e58737e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Codemirror.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ const debounce = require('lodash.debounce');
66

77
const CodeMirror = React.createClass({
88
propTypes: {
9+
className: React.PropTypes.any,
10+
codeMirrorInstance: React.PropTypes.func,
11+
defaultValue: React.PropTypes.string,
912
onChange: React.PropTypes.func,
1013
onFocusChange: React.PropTypes.func,
1114
onScroll: React.PropTypes.func,
1215
options: React.PropTypes.object,
1316
path: React.PropTypes.string,
1417
value: React.PropTypes.string,
15-
className: React.PropTypes.any,
16-
codeMirrorInstance: React.PropTypes.func,
1718
},
1819
getCodeMirrorInstance () {
1920
return this.props.codeMirrorInstance || require('codemirror');

0 commit comments

Comments
 (0)