]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #6025 - TextChangeEvent that is lazy and uses timeout 0 should work as eager
authorArtur Signell <artur.signell@itmill.com>
Mon, 29 Nov 2010 09:26:33 +0000 (09:26 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 29 Nov 2010 09:26:33 +0000 (09:26 +0000)
svn changeset:16202/svn branch:6.5

src/com/vaadin/terminal/gwt/client/ui/VTextField.java

index d84e1fb1561f73f24e01c40ccff859cc984f871d..c5a8711c55b163cf97c6fcb248a9ff9bf996bae1 100644 (file)
@@ -215,6 +215,11 @@ public class VTextField extends TextBoxBase implements Paintable, Field,
             } else {
                 textChangeEventTimeout = uidl
                         .getIntAttribute(ATTR_TEXTCHANGE_TIMEOUT);
+                if (textChangeEventTimeout < 1) {
+                    // Sanitize and allow lazy/timeout with timeout set to 0 to
+                    // work as eager
+                    textChangeEventTimeout = 1;
+                }
             }
             sinkEvents(TEXTCHANGE_EVENTS);
             attachCutEventListener(getElement());