mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 19:55:53 +03:00
chat: fixed this.editor issue introduced in merge
This commit is contained in:
parent
3660d30cb1
commit
1b0cb6694e
@ -171,26 +171,13 @@ export class ChatInput extends Component {
|
||||
};
|
||||
this.closure = closure.bind(this);
|
||||
setTimeout(this.closure, 2000);*/
|
||||
|
||||
this.editor.setValue('');
|
||||
}
|
||||
|
||||
toggleCode() {
|
||||
if(this.state.code) {
|
||||
this.setState({ code: false });
|
||||
this.editor.setOption('mode', MARKDOWN_CONFIG);
|
||||
this.editor.setOption('placeholder', this.props.placeholder);
|
||||
} else {
|
||||
this.setState({ code: true });
|
||||
this.editor.setOption('mode', null);
|
||||
this.editor.setOption('placeholder', 'Code...');
|
||||
}
|
||||
const value = this.editor.getValue();
|
||||
|
||||
// Force redraw of placeholder
|
||||
if(value.length === 0) {
|
||||
this.editor.setValue(' ');
|
||||
this.editor.setValue('');
|
||||
}
|
||||
}
|
||||
|
||||
@ -209,6 +196,7 @@ export class ChatInput extends Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
console.log('hi');
|
||||
const { props, state } = this;
|
||||
|
||||
const color = props.ownerContact
|
||||
|
Loading…
Reference in New Issue
Block a user