Skip to content

Commit

Permalink
[TextField][MultiLine] Fixed bug with multiLine cursor position on he…
Browse files Browse the repository at this point in the history
…ight change. Issue mui#4257
  • Loading branch information
oephrosinin committed May 24, 2016
1 parent be15233 commit 2d0b540
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/TextField/TextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ const getStyles = (props, context, state) => {
font: 'inherit',
});

// If rowsMax property exists, calc max height value for textarea
if (props.rowsMax) {
styles.textarea.maxHeight = 24 * props.rowsMax;
}

if (state.hasValue) {
styles.floatingLabel.color = fade(props.disabled ? disabledTextColor : floatingLabelColor, 0.5);
}
Expand Down

0 comments on commit 2d0b540

Please sign in to comment.