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
parent
70823afcb3
commit
6f03fb553a
|
@ -164,6 +164,7 @@ const factory = (FontIcon) => {
|
||||||
value
|
value
|
||||||
};
|
};
|
||||||
if (!multiline) {
|
if (!multiline) {
|
||||||
|
inputElementProps.maxLength = maxLength;
|
||||||
inputElementProps.onKeyPress = onKeyPress;
|
inputElementProps.onKeyPress = onKeyPress;
|
||||||
} else {
|
} else {
|
||||||
inputElementProps.rows = 1;
|
inputElementProps.rows = 1;
|
||||||
|
|
Loading…
Reference in New Issue