-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Textarea initial height being set to zero #1870
Copy link
Copy link
Closed
Labels
scope: text fieldChanges related to the text field.Changes related to the text field.
Description
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) {Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
scope: text fieldChanges related to the text field.Changes related to the text field.

