From 7781b64f6b5ebf4b8db50512ae13227a998d28db Mon Sep 17 00:00:00 2001 From: crisbeto Date: Thu, 31 Aug 2017 21:25:56 +0200 Subject: [PATCH] fix(input): remove resize handle from non-textarea inputs 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. --- src/lib/input/input.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/input/input.scss b/src/lib/input/input.scss index b960fa972d02..d357326b973b 100644 --- a/src/lib/input/input.scss +++ b/src/lib/input/input.scss @@ -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; }