Skip to content

Commit 1272f03

Browse files
crisbetojelbourn
authored andcommitted
fix(input): remove resize handle from non-textarea inputs (#6768)
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.
1 parent e318de6 commit 1272f03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/input/input.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

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

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

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

0 commit comments

Comments
 (0)