diff options
author | Mika Murtojärvi <mika@vaadin.com> | 2015-06-17 07:56:55 +0000 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2015-06-17 08:00:36 +0000 |
commit | 3a8b97e3697fb7df0c3f54f813e2018168ef05a7 (patch) | |
tree | 618bd00fdd404e683da7f37f7e770f59b368a288 /client | |
parent | 6c759028b2e4edf5280fb66517c8fe1c7660ecf8 (diff) | |
download | vaadin-framework-3a8b97e3697fb7df0c3f54f813e2018168ef05a7.tar.gz vaadin-framework-3a8b97e3697fb7df0c3f54f813e2018168ef05a7.zip |
Revert "Prevent field from updating when removing text change listener. (#16270)"
This reverts commit 4af793d06a0f4a6577aad13403ca7982c6fce224.
Test ConverterThatEnforcesAFormatTest.checkElaborating is broken by this change.
Change-Id: I8243f6a7bff6d7011d402bce4b614f7d2e4206fd
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/textfield/TextFieldConnector.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/textfield/TextFieldConnector.java b/client/src/com/vaadin/client/ui/textfield/TextFieldConnector.java index fad094b87f..0d85e98ee3 100644 --- a/client/src/com/vaadin/client/ui/textfield/TextFieldConnector.java +++ b/client/src/com/vaadin/client/ui/textfield/TextFieldConnector.java @@ -89,9 +89,10 @@ public class TextFieldConnector extends AbstractFieldConnector implements * side value). <input> is updated only when it looses focus, so we * force updating if not focused. Lost focus issue appeared in (#15144) */ - if (Util.getFocusedElement() != getWidget().getElement() + if (!(Util.getFocusedElement() == getWidget().getElement()) || !uidl.getBooleanAttribute(TextFieldConstants.ATTR_NO_VALUE_CHANGE_BETWEEN_PAINTS) - || getWidget().valueBeforeEdit == null) { + || getWidget().valueBeforeEdit == null + || !text.equals(getWidget().valueBeforeEdit)) { getWidget().updateFieldContent(text); } |