diff options
author | Artur Signell <artur@vaadin.com> | 2016-09-09 09:37:57 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2016-09-09 06:39:09 +0000 |
commit | dfe23f7385d8f8737747b8646299adddaaa57c8d (patch) | |
tree | b2c5746d8c14cb39a1a11ba7de2bb45557dcb749 /client | |
parent | de590afcf91cc47fede3630a4f8b0adb54814777 (diff) | |
download | vaadin-framework-dfe23f7385d8f8737747b8646299adddaaa57c8d.tar.gz vaadin-framework-dfe23f7385d8f8737747b8646299adddaaa57c8d.zip |
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
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/textfield/AbstractTextFieldConnector.java | 6 |
1 files changed, 6 insertions, 0 deletions
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(); + } + } |