-
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
mdTextareaAutosize doesn't resize textarea to a single row when mdAutosizeMinRows is set to 1 #4852
Comments
By default every textarea has the This means that this is actually not an issue but maybe this should be just mentioned in the docs. Also possible would be setting the default amount of rows to @mmalerba What do you think? |
@devversion Just FYI in angular/material v1 there was a similar bug, and its description said that default |
@ruslan-simonenko Thanks for linking this issue. I was not able to find it either but I just think it still makes sense to switch to
Not sure if this indicates that it should start with a single row by default. |
I think the default of |
@mmalerba Yeah I agree that it would be easier to follow the design of the native textarea. I just think if it is specified (still not sure where explicitly) then it's something we need to think about more. |
Interesting- the spec designates "multi-line text field" and "text area" as two completely different things. On web, they're both Either way, I agree that it should default to one row, otherwise you don't really have a way to do that. |
* The autosize directive now sets the rows property of the textarea to one by default. * This is necessary because browsers by default set the rows property to two and therefore setting the minRows and maxRows binding to something below two doesn't work. Fixes angular#4852
* The autosize directive now sets the rows property of the textarea to one by default. * This is necessary because browsers by default set the rows property to two and therefore setting the minRows and maxRows binding to something below two doesn't work. Fixes angular#4852
* The autosize directive now sets the rows property of the textarea to one by default. * This is necessary because browsers by default set the rows property to two and therefore setting the minRows and maxRows binding to something below two doesn't work. Fixes angular#4852
* The autosize directive now sets the rows property of the textarea to one by default. * This is necessary because browsers by default set the rows property to two and therefore setting the minRows and maxRows binding to something below two doesn't work. Fixes #4852
I stiil have this bug in Firefox 54 with Material 2.0.0-beta.8. |
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. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Textarea should be resized to a single line.
What is the current behavior?
Resize doesn't shrink textarea to a single line, stops at minimum of two lines.
What are the steps to reproduce?
http://plnkr.co/edit/0HyRxBSQI7wksb7QFLDE?p=preview
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 4.1.3
Material: v2.0.0-beta.6
OS: tested on Mac OS X 10.11.6
Browsers: tested on both Chrome 58 and Firefox 54
The text was updated successfully, but these errors were encountered: