-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
MatTextareaAutosize height breaks when placeholder text longer than width of input #8013
Comments
devversion
added a commit
to devversion/material2
that referenced
this issue
Oct 25, 2017
Long placeholders can cause the `scrollHeight` to be bigger than the actual content is. To ensure the `scrollHeight` is correct, the placeholders need to be removed temporarily. Fixes angular#8013
jelbourn
pushed a commit
that referenced
this issue
Nov 18, 2017
Long placeholders can cause the `scrollHeight` to be bigger than the actual content is. To ensure the `scrollHeight` is correct, the placeholders need to be removed temporarily. Fixes #8013
devversion
added a commit
to devversion/material2
that referenced
this issue
Nov 19, 2017
Long placeholders can cause the `scrollHeight` to be bigger than the actual content is. To ensure the `scrollHeight` is correct, the placeholders need to be removed temporarily. Fixes angular#8013
jelbourn
pushed a commit
that referenced
this issue
Nov 20, 2017
Long placeholders can cause the `scrollHeight` to be bigger than the actual content is. To ensure the `scrollHeight` is correct, the placeholders need to be removed temporarily. Fixes #8013
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug, feature request, or proposal:
When you set a longer placeholder text on a textarea using autoresize, the calculated height for the textarea when empty wrong and changes once you start typing.
What is the expected behavior?
The empty value should just be the height of 1 line
What is the current behavior?
The resulting height with an empty field is the height that the textarea would be if the placeholder text was in it.
What are the steps to reproduce?
Set a long placeholder text on a textarea
see: https://angular-material2-issue-dkvdyn.stackblitz.io
What is the use-case or motivation for changing an existing behavior?
Textarea height jumps when empty or not having a value
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Chrome & Safari at least
Is there anything else we should know?
The placeholder text should be ignored when calculating the height of the textarea
The text was updated successfully, but these errors were encountered: