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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user