]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #6056 - Removing max length restriction from a TextField does not work in IE
authorArtur Signell <artur.signell@itmill.com>
Thu, 25 Nov 2010 12:42:31 +0000 (12:42 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 25 Nov 2010 12:42:31 +0000 (12:42 +0000)
svn changeset:16154/svn branch:6.5

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

index 49d31d6194544084be980a671793bb7bd2af04ba..95e1d36109b0c8ea01aaf56bce3c3e9823b54e37 100644 (file)
@@ -338,7 +338,7 @@ public class VTextField extends TextBoxBase implements Paintable, Field,
             if (getElement().getTagName().toLowerCase().equals("textarea")) {
                 // NOP no maxlength property for textarea
             } else {
-                getElement().setAttribute("maxlength", "");
+                getElement().removeAttribute("maxLength");
             }
             maxLength = -1;
         }