Skip to content

Commit fef2b44

Browse files
committed
Switching to defaultValue for textarea prop, fixes JedWatson#2
1 parent c962a94 commit fef2b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var CodeMirror = React.createClass({
5959
}
6060
return (
6161
<div className={className}>
62-
<textarea ref="codemirror" name={this.props.path} value={this.props.value} onChange={this.valueChanged} autoComplete="off" />
62+
<textarea ref="codemirror" name={this.props.path} defaultValue={this.props.value} autoComplete="off" />
6363
</div>
6464
);
6565
}

0 commit comments

Comments
 (0)