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