Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline Input display & errors #355

Closed
mhuebert opened this issue Feb 22, 2015 · 2 comments
Closed

Multiline Input display & errors #355

mhuebert opened this issue Feb 22, 2015 · 2 comments
Labels
component: TextareaAutosize The React component.

Comments

@mhuebert
Copy link
Contributor

I have two TextField fields which are otherwise identical, except one has multiline={true}. By toggling multiline true/false I can reproduce and eliminate the following two problems:

  1. I get the following error, despite having an onChange handler on the field: "Warning: You provided a value prop to a form field without an onChange handler. This will render a read-only field. If the field should be mutable use defaultValue. Otherwise, set either onChange or readOnly. Check the render method of EnhancedTextarea."
  2. When I provide an initial multi-line value for the multiline field, only the first line is visible, even after clicking into the field - I have to either use the arrow keys, or click and drag with the mouse, to scroll down and see the additional lines.
mhuebert added a commit to mhuebert/material-ui that referenced this issue Feb 22, 2015
mhuebert added a commit to mhuebert/material-ui that referenced this issue Feb 22, 2015
When a value is provided as a prop to EnhancedTextarea, the height should be synced. Fixes part II of mui#355.
@bartgryszko
Copy link

👍

hai-cea added a commit that referenced this issue Feb 25, 2015
Set readOnly of shadow textarea in EnhancedTextarea (#355)
hai-cea added a commit that referenced this issue Feb 25, 2015
sync height with new props.value ( #355)
@hai-cea
Copy link
Member

hai-cea commented Feb 25, 2015

Fixed with #356 & #357

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: TextareaAutosize The React component.
Projects
None yet
Development

No branches or pull requests

4 participants