fix(autosize): remove resize handle (#8621)

Removes the resize handle on autosize textareas, because the user's height will be overwritten once they start typing again.
This commit is contained in:
Kristiyan Kostadinov
2017-12-08 18:50:14 +01:00
committed by mmalerba
parent 97b126984c
commit 0d2a419a55
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ import {Platform} from '@angular/cdk/platform';
selector: `textarea[mat-autosize], textarea[matTextareaAutosize]`,
exportAs: 'matTextareaAutosize',
host: {
'class': 'mat-autosize',
// Textarea elements that have the directive applied should have a single row by default.
// Browsers normally show two rows by default and therefore this limits the minRows binding.
'rows': '1',
+6
View File
@@ -82,3 +82,9 @@ textarea.mat-input-element {
resize: vertical;
overflow: auto;
}
// Remove the resize handle on autosizing textareas, because whatever height
// the user resized to will be overwritten once they start typing again.
textarea.mat-autosize {
resize: none;
}