add fix for extra comments for #11781 (#11902)

This commit is contained in:
Grace Guo
2020-12-02 18:13:42 -08:00
committed by GitHub
parent 721f9119e1
commit 61064b9634
3 changed files with 8 additions and 6 deletions

View File

@@ -78,10 +78,14 @@ export default class TextAreaControl extends React.Component {
const value = this.props.value || '';
const minLines = inModal ? 40 : this.props.minLines || 12;
if (this.props.language) {
const style = { border: '1px solid #CCC' };
if (this.props.readOnly) {
style.backgroundColor = '#f2f2f2';
}
return (
<TextAreaEditor
mode={this.props.language}
style={{ border: '1px solid #CCC' }}
style={style}
minLines={minLines}
maxLines={inModal ? 1000 : this.props.maxLines}
onChange={this.onAceChangeDebounce}