Skip to content

Commit a506a23

Browse files
author
James Sinclair
committed
Adding in change from gammons in PR 45
1 parent 199fd01 commit a506a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = React.createClass({
3333
},
3434

3535
componentWillReceiveProps: function(nextProps) {
36-
if (!this.state.keyChange) {
36+
if (!this.state.keyChange && (nextProps.value !== this.simplemde.value())) {
3737
this.simplemde.value(nextProps.value)
3838
}
3939

0 commit comments

Comments
 (0)