Skip to content

Commit 5bb0536

Browse files
committed
No longer set an unsupported type to the input element (IE11)
1 parent 67aa2fa commit 5bb0536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/input/input-container.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class MdInputDirective implements AfterContentInit {
132132
// When using Angular inputs, developers are no longer able to set the properties on the native
133133
// input element. To ensure that bindings for `type` work, we need to sync the setter
134134
// with the native property. Textarea elements don't support the type property or attribute.
135-
if (!this._isTextarea()) {
135+
if (!this._isTextarea() && getSupportedInputTypes().has(this._type)) {
136136
this._renderer.setElementProperty(this._elementRef.nativeElement, 'type', this._type);
137137
}
138138
}

0 commit comments

Comments
 (0)