From dfe23f7385d8f8737747b8646299adddaaa57c8d Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 9 Sep 2016 09:37:57 +0300 Subject: [PATCH] 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 --- .../client/ui/textfield/AbstractTextFieldConnector.java | 6 ++++++ 1 file changed, 6 insertions(+) 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(); + } + } -- 2.39.5