Skip to content

Commit acfdc46

Browse files
committed
fix(input): IE always adding scrollbar to textarea
* Fixes IE always adding a scrollbar to Material textareas, even if they don't overflow. * Removes a double theme toggle from the demo app. It was probably the result of a bad merge.
1 parent 4c98714 commit acfdc46

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/demo-app/demo-app/demo-app.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
<div class="demo-toolbar">
2727
<h1>Angular Material Demos</h1>
2828
<div>
29-
<button md-button (click)="dark = !dark">{{dark ? 'Light' : 'Dark'}} theme</button>
3029
<button md-button (click)="toggleChangeDetection()" title="Toggle change detection">
3130
Change detection: {{changeDetectionStrategy}}
3231
</button>

src/lib/input/input-container.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ $mat-input-underline-disabled-background-image:
121121
}
122122
}
123123

124+
// Prevents IE from always adding a scrollbar by default.
125+
textarea.mat-input-element {
126+
overflow: auto;
127+
}
128+
124129
// The placeholder label. This is invisible unless it is. The logic to show it is
125130
// basically `empty || (float && (!empty || focused))`. Float is dependent on the
126131
// `floatingPlaceholder` input.

0 commit comments

Comments
 (0)