Skip to content

Textarea initial height being set to zero #1870

@matsilva

Description

@matsilva

After _syncHeightWithShadow is called on componentDidMount in the enhanced-textarea.jsx component, it will revert from initial 24 value to 0. As a result, the user is completely blocked from editing the textarea.

I managed to temporarily fix it by changing this line:
https://github.com/callemall/material-ui/blob/master/src/enhanced-textarea.jsx#L123

To:

if (this.state.height !== newHeight && newHeight !== 0) {

Before the fix
screen shot 2015-10-13 at 4 45 26 pm

After the fix*
screen shot 2015-10-13 at 4 47 15 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: text fieldChanges related to the text field.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions