Fix WYSIWYG state

Signed-off-by: HichamELBSI <elabbassih@gmail.com>
This commit is contained in:
HichamELBSI 2021-03-11 11:20:41 +01:00
parent 8167f90b56
commit 17c29747b4

View File

@ -207,9 +207,9 @@ class Wysiwyg extends React.Component {
() => {
this.focus();
// Update the parent reducer
this.sendData(newEditorState);
}
);
this.sendData(newEditorState);
return;
}
@ -220,10 +220,9 @@ class Wysiwyg extends React.Component {
},
() => {
this.focus();
// Update the parent reducer
this.sendData(newEditorState);
}
);
this.sendData(newEditorState);
return;
};