We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67aa2fa commit 5bb0536Copy full SHA for 5bb0536
src/lib/input/input-container.ts
@@ -132,7 +132,7 @@ export class MdInputDirective implements AfterContentInit {
132
// When using Angular inputs, developers are no longer able to set the properties on the native
133
// input element. To ensure that bindings for `type` work, we need to sync the setter
134
// with the native property. Textarea elements don't support the type property or attribute.
135
- if (!this._isTextarea()) {
+ if (!this._isTextarea() && getSupportedInputTypes().has(this._type)) {
136
this._renderer.setElementProperty(this._elementRef.nativeElement, 'type', this._type);
137
}
138
0 commit comments