Skip to content
Snippets Groups Projects
Commit 4ce15400 authored by Sorin Davidoi's avatar Sorin Davidoi Committed by Eugen Rochko
Browse files

fix(features/compose): Handle external changes to the textarea (#3632)

parent 67243bda
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,12 @@ export default class ComposeForm extends ImmutablePureComponent { ...@@ -67,6 +67,12 @@ export default class ComposeForm extends ImmutablePureComponent {
} }
handleSubmit = () => { 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(); this.props.onSubmit();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment