Skip to content

Commit

Permalink
fix(input): remove resize handle from non-textarea inputs (#6768)
Browse files Browse the repository at this point in the history
Fixes some input types getting a native resize handle, because we were setting the `resize: vertical` explicitly for all `.mat-input-element` instances.

Fixes #6757.
crisbeto authored and jelbourn committed Sep 1, 2017

Verified

This commit was signed with the committer’s verified signature.
thaJeztah Sebastiaan van Stijn
1 parent e318de6 commit 1272f03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/input/input.scss
Original file line number Diff line number Diff line change
@@ -22,7 +22,6 @@

// Prevent textareas from being resized outside the form field.
max-width: 100%;
resize: vertical;

// Needed to make last line of the textarea line up with the baseline.
vertical-align: bottom;
@@ -45,5 +44,7 @@

// Prevents IE from always adding a scrollbar by default.
textarea.mat-input-element {
// Only allow resizing along the Y axis.
resize: vertical;
overflow: auto;
}

0 comments on commit 1272f03

Please sign in to comment.