bug fix
This commit is contained in:
@@ -478,7 +478,7 @@ export class ReplyForm extends Component {
|
||||
{
|
||||
this.state.preview ?
|
||||
<div className='reply-preview'>
|
||||
<HighlightedMarkdown key={this.props.pid} text={this.state.text} color_picker={this.color_picker} show_pid={this.props.show_pid} />
|
||||
<HighlightedMarkdown text={this.state.text} color_picker={this.color_picker} show_pid={()=>{}} />
|
||||
</div> :
|
||||
<SafeTextarea key={this.props.pid} ref={this.area_ref} id={this.props.pid} on_change={this.on_change_bound} on_submit={this.on_submit.bind(this)} />
|
||||
}
|
||||
@@ -739,7 +739,7 @@ export class PostForm extends Component {
|
||||
{
|
||||
this.state.preview ?
|
||||
<div className='post-preview'>
|
||||
<HighlightedMarkdown text={this.state.text} color_picker={this.color_picker} show_pid={this.props.show_pid} />
|
||||
<HighlightedMarkdown text={this.state.text} color_picker={this.color_picker} show_pid={()=>{}} />
|
||||
</div> :
|
||||
<SafeTextarea ref={this.area_ref} id="new_post" on_change={this.on_change_bound} on_submit={this.on_submit.bind(this)} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user