fix(input): don't remove the maxLenght attribute from inputs

We still rely on it when using non-multiline inputs (=> the input element is used), only when using textareas we use our custom maxlength logic.
old
Simon Selg 2016-08-04 21:58:41 +02:00
parent 70823afcb3
commit 6f03fb553a
1 changed files with 1 additions and 0 deletions

View File

@ -164,6 +164,7 @@ const factory = (FontIcon) => {
value
};
if (!multiline) {
inputElementProps.maxLength = maxLength;
inputElementProps.onKeyPress = onKeyPress;
} else {
inputElementProps.rows = 1;