Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(textarea): add md-textarea element#1562
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
e84365c42b7592f53e65417c2761ddda4ed41cfdd56f2354cba71282262785cacac45e478430195e6bab6bf561343a676288a560bFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -4,6 +4,7 @@ | ||
| <div class="md-input-infix"> | ||
| <input #input | ||
| *ngIf="_elementType === 'input'" | ||
| class="md-input-element" | ||
| [class.md-end]="align == 'end'" | ||
| [attr.aria-label]="ariaLabel" | ||
| @@ -34,6 +35,37 @@ | ||
| [(ngModel)]="value" | ||
| (change)="_handleChange($event)"> | ||
| <textarea | ||
| #input | ||
| *ngIf="_elementType === 'textarea'" | ||
| class="md-input-element md-input-element-textarea" | ||
| [class.md-end]="align == 'end'" | ||
| [attr.aria-label]="ariaLabel" | ||
| [attr.aria-labelledby]="ariaLabelledBy" | ||
| [attr.aria-disabled]="ariaDisabled" | ||
| [attr.aria-required]="ariaRequired" | ||
| [attr.aria-invalid]="ariaInvalid" | ||
| [attr.autocomplete]="autocomplete" | ||
| [attr.autocapitalize]="autocapitalize" | ||
| [attr.cols]="cols" | ||
| [attr.rows]="rows" | ||
| [attr.wrap]="wrap" | ||
| [autofocus]="autofocus" | ||
| [disabled]="disabled" | ||
| [id]="inputId" | ||
| [attr.maxlength]="maxlength" | ||
| [attr.minlength]="minlength" | ||
| [readonly]="readonly" | ||
| [required]="required" | ||
| [spellcheck]="spellcheck" | ||
| [attr.tabindex]="tabindex" | ||
| [attr.name]="name" | ||
| (focus)="_handleFocus($event)" | ||
| (blur)="_handleBlur($event)" | ||
| [(ngModel)]="value" | ||
| (change)="_handleChange($event)"></textarea> | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can remove min, max, and autocorrect. They don't exist on We should add https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea | ||
| <label class="md-input-placeholder" | ||
| [attr.for]="inputId" | ||
| [class.md-empty]="empty" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FYI: we're probably going to do away with these internal elements and content-project an input from the user.