Adds value check to setMaxCharacters.
@@ -125,7 +125,9 @@ public class TextFieldBuilder extends ComponentBuilder<TextField, TextFieldBuild
* This.
*/
public TextFieldBuilder setMaxCharacters(final int maxCharacters) {
+ if (maxCharacters >= 1) {
this.maxCharacters = maxCharacters;
+ }
return this;
}
