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:
@@ -152,6 +152,8 @@ export default class CodeEditor extends React.Component {
|
||||
}
|
||||
|
||||
componentDidUpdate (prevProps, prevState) {
|
||||
let { value } = this.props
|
||||
this.value = value
|
||||
var session = this.editor.getSession()
|
||||
|
||||
if (prevProps.mode !== this.props.mode) {
|
||||
|
||||
Reference in New Issue
Block a user