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 5bb0536 commit ca8040bCopy full SHA for ca8040b
src/lib/input/input-container.ts
@@ -193,7 +193,7 @@ export class MdInputDirective implements AfterContentInit {
193
/** Determines if the component host is a textarea. If not recognizable it returns false. */
194
private _isTextarea() {
195
let nativeElement = this._elementRef.nativeElement;
196
- return nativeElement ? nativeElement.nodeName === 'textarea' : 'input';
+ return nativeElement ? nativeElement.nodeName.toLowerCase() === 'textarea' : false;
197
}
198
199
0 commit comments