From de53191998be79268b78e6589173ed71171d9185 Mon Sep 17 00:00:00 2001 From: Marc Englund Date: Wed, 28 Aug 2013 15:47:02 +0300 Subject: [PATCH] Fix for #12279 (caret jumps when formatting in RTA). Change-Id: I09bd04cd0d687be636a7b4d718bccf271bdb9dd9 --- .../vaadin/client/ui/richtextarea/RichTextAreaConnector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/com/vaadin/client/ui/richtextarea/RichTextAreaConnector.java b/client/src/com/vaadin/client/ui/richtextarea/RichTextAreaConnector.java index 20dfc74c69..d2576eb133 100644 --- a/client/src/com/vaadin/client/ui/richtextarea/RichTextAreaConnector.java +++ b/client/src/com/vaadin/client/ui/richtextarea/RichTextAreaConnector.java @@ -104,9 +104,9 @@ public class RichTextAreaConnector extends AbstractFieldConnector implements if (getConnection() != null && getConnectorId() != null) { final String html = getWidget().getSanitizedValue(); if (!html.equals(cachedValue)) { + cachedValue = html; getConnection().updateVariable(getConnectorId(), "text", html, getState().immediate); - getWidget().setValue(html); } } }; -- 2.39.5