Skip to content

Commit

Permalink
Change selector to mdTextareaAutosize
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion committed Jan 3, 2017
1 parent 9ffcc71 commit 6b068b6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/demo-app/input/input-container-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ <h4>Textarea</h4>
<md-card class="demo-card demo-basic">
<md-toolbar color="primary">Textarea Autosize</md-toolbar>
<md-card-content>
<textarea md-textarea-autosize class="demo-textarea"></textarea>
<textarea mdTextareaAutosize class="demo-textarea"></textarea>
<div>
<md-input-container>
<textarea md-input
md-textarea-autosize
mdTextareaAutosize
placeholder="Autosized textarea"></textarea>
</md-input-container>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/demo-app/input/input-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,5 @@ <h4>Textarea</h4>

<md-card>
<h2>textarea autosize</h2>
<textarea md-textarea-autosize class="demo-textarea"></textarea>
<textarea mdTextareaAutosize class="demo-textarea"></textarea>
</md-card>
4 changes: 2 additions & 2 deletions src/lib/input/autosize.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const textareaStyleReset = `

@Component({
template: `
<textarea md-textarea-autosize [minRows]="minRows" [maxRows]="maxRows"
<textarea mdTextareaAutosize [minRows]="minRows" [maxRows]="maxRows"
#autosize="mdTextareaAutosize">
{{content}}
</textarea>`,
Expand All @@ -130,7 +130,7 @@ class AutosizeTextAreaWithContent {
}

@Component({
template: `<textarea md-textarea-autosize [value]="value"></textarea>`,
template: `<textarea mdTextareaAutosize [value]="value"></textarea>`,
styles: [textareaStyleReset],
})
class AutosizeTextAreaWithValue {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/input/autosize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Directive, ElementRef, Input, OnInit} from '@angular/core';
* Directive to automatically resize a textarea to fit its content.
*/
@Directive({
selector: 'textarea[md-textarea-autosize], textarea[mat-textarea-autosize]',
selector: 'textarea[md-autosize], textarea[mat-autosize], textarea[mdTextareaAutosize]',
exportAs: 'mdTextareaAutosize',
host: {
'(input)': 'resizeToFitContent()',
Expand Down

0 comments on commit 6b068b6

Please sign in to comment.