From: Artur Signell Date: Fri, 9 Sep 2016 06:37:57 +0000 (+0300) Subject: Send TextField value to server on flush() X-Git-Tag: 8.0.0.alpha1~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dfe23f7385d8f8737747b8646299adddaaa57c8d;p=vaadin-framework.git Send TextField value to server on flush() 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 --- diff --git a/client/src/main/java/com/vaadin/client/ui/textfield/AbstractTextFieldConnector.java b/client/src/main/java/com/vaadin/client/ui/textfield/AbstractTextFieldConnector.java index 3ee9958140..bc8c82f549 100644 --- a/client/src/main/java/com/vaadin/client/ui/textfield/AbstractTextFieldConnector.java +++ b/client/src/main/java/com/vaadin/client/ui/textfield/AbstractTextFieldConnector.java @@ -161,4 +161,10 @@ public abstract class AbstractTextFieldConnector getState().text = getAbstractTextField().getValue(); } + @Override + public void flush() { + super.flush(); + sendValueChange(); + } + }