Skip to content

Commit

Permalink
[1346] Avoid unnecessary invocations of the editRichText mutation
Browse files Browse the repository at this point in the history
Bug: #1346
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
  • Loading branch information
pcdavid authored and AxelRICHARD committed Dec 12, 2022
1 parent e3e8314 commit 7800fac
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -158,7 +158,9 @@ export const RichTextPropertySection = ({
const onFocus = () => sendUpdateWidgetFocus(true);
const onBlur = (currentText: string) => {
sendUpdateWidgetFocus(false);
sendEditedValue(currentText);
if (currentText !== widget.stringValue) {
sendEditedValue(currentText);
}
};

return (
Expand Down

0 comments on commit 7800fac

Please sign in to comment.