mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 20:42:43 +00:00
Fix /page not working in legacy mode. (#1233)
* Fix brew styles overwriting each other. * Word wrapping, start fixing spacing on Title letter * Fix \page in legacy brews when not at line start
This commit is contained in:
@@ -61,9 +61,9 @@ const CodeEditor = createClass({
|
||||
}
|
||||
},
|
||||
|
||||
componentWillReceiveProps : function(nextProps){
|
||||
if(this.codeMirror && nextProps.value !== undefined && this.codeMirror.getValue() != nextProps.value) {
|
||||
this.codeMirror.setValue(nextProps.value);
|
||||
componentDidUpdate : function(prevProps) {
|
||||
if(this.codeMirror && this.props.value !== undefined && this.codeMirror.getValue() != this.props.value) {
|
||||
this.codeMirror.setValue(this.props.value);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user