]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #12279 (caret jumps when formatting in RTA).
authorMarc Englund <marc@vaadin.com>
Wed, 28 Aug 2013 12:47:02 +0000 (15:47 +0300)
committerMarc Englund <marc@vaadin.com>
Tue, 3 Sep 2013 08:09:17 +0000 (11:09 +0300)
Change-Id: I09bd04cd0d687be636a7b4d718bccf271bdb9dd9

client/src/com/vaadin/client/ui/richtextarea/RichTextAreaConnector.java

index 20dfc74c69daf1b2c2f9c59729d8f87109307a47..d2576eb13316ccd61fd6139c06061fe7cee69c57 100644 (file)
@@ -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);
             }
         }
     };