Merge branch 'master' into fix/groups-issue-interupting

This commit is contained in:
Alexandre BODIN 2019-10-18 13:27:07 +02:00 committed by GitHub
commit 415bdcd806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
# Prameters # Parameters
## Concept ## Concept

View File

@ -648,11 +648,10 @@ class Wysiwyg extends React.Component {
*/ */
sendData = editorState => { sendData = editorState => {
if ( if (
this.getEditorState().getCurrentContent() === this.getEditorState().getCurrentContent() !==
editorState.getCurrentContent() editorState.getCurrentContent() ||
) editorState.getLastChangeType() === 'remove-range'
return; ) {
this.props.onChange({ this.props.onChange({
target: { target: {
value: editorState.getCurrentContent().getPlainText(), value: editorState.getCurrentContent().getPlainText(),
@ -660,6 +659,7 @@ class Wysiwyg extends React.Component {
type: 'textarea', type: 'textarea',
}, },
}); });
} else return;
}; };
toggleFullScreen = e => { toggleFullScreen = e => {

View File

@ -210,7 +210,7 @@ module.exports = {
null, null,
formatError({ formatError({
id: 'Auth.form.error.email.taken', id: 'Auth.form.error.email.taken',
message: 'Eamil already taken', message: 'Email already taken',
field: ['email'], field: ['email'],
}) })
); );