1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

set value when updating

This commit is contained in:
Dick Choi
2016-05-31 21:38:34 +09:00
parent d171078ca4
commit d9096424c5
2 changed files with 6 additions and 0 deletions

View File

@@ -17,6 +17,10 @@ class MarkdownEditor extends React.Component {
this.value = this.refs.code.value
}
componentDidUpdate () {
this.value = this.refs.code.value
}
handleChange (e) {
this.value = this.refs.code.value
this.props.onChange(e)