|
|
@ -67,6 +67,12 @@ export default class ComposeForm extends ImmutablePureComponent { |
|
|
|
} |
|
|
|
|
|
|
|
handleSubmit = () => { |
|
|
|
if (this.props.text !== this.autosuggestTextarea.textarea.value) { |
|
|
|
// Something changed the text inside the textarea (e.g. browser extensions like Grammarly)
|
|
|
|
// Update the state to match the current text
|
|
|
|
this.props.onChange(this.autosuggestTextarea.textarea.value); |
|
|
|
} |
|
|
|
|
|
|
|
this.props.onSubmit(); |
|
|
|
} |
|
|
|
|
|
|
|