]> source.dussan.org Git - vaadin-framework.git/commitdiff
Send TextField value to server on flush()
authorArtur Signell <artur@vaadin.com>
Fri, 9 Sep 2016 06:37:57 +0000 (09:37 +0300)
committerArtur Signell <artur@vaadin.com>
Fri, 9 Sep 2016 06:39:09 +0000 (06:39 +0000)
This seems to have been dropped from the new TextField patch and is needed e.g. for
shortcut handlers to send the value before invoking the shortcut

Change-Id: Icb0fb45c8d28fad90f13f958cbc5970cdb0fd54a

client/src/main/java/com/vaadin/client/ui/textfield/AbstractTextFieldConnector.java

index 3ee995814073fe1d45dcf3bbb691117f57ed040a..bc8c82f5493602b72a745f924742b22c896dbfb3 100644 (file)
@@ -161,4 +161,10 @@ public abstract class AbstractTextFieldConnector
         getState().text = getAbstractTextField().getValue();
     }
 
+    @Override
+    public void flush() {
+        super.flush();
+        sendValueChange();
+    }
+
 }