-
Notifications
You must be signed in to change notification settings - Fork 924
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
Add auto expand to <mwc-textfield> and <mwc-textarea> #455
Comments
Not implemented in mdc. Not against it, but the spec is low on details on the outlined variant of this. Will need to get more info from designers |
Any update on this? I have a need for it as well. Here's my current hack: I have async resize() {
const outer = this.shadowRoot.getElementById("textarea");
const inner = outer.shadowRoot.getElementById("text-field");
outer.rows = 3;
await null;
while (inner.scrollHeight > inner.offsetHeight) {
outer.rows = outer.rows + 1;
await null;
}
} |
Hello, currently no update as most of our efforts are put into getting select out and architectural reworkings. |
Any update on this one? |
There is no update, we will post in this issue if there is one. |
I'm submitting a
Proposed Properties/Attributes
autoExpand
boolean
maxRows
number
autoExpand
to be set. Maximum number of visible text lines.Example
Expected behaviour
Other information
This behaviour is described under multi-line fields within the Material Design guidelines.
The text was updated successfully, but these errors were encountered: