Skip to content

Commit e4c9c51

Browse files
committed
Address feedback
1 parent 9ba74fb commit e4c9c51

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
@@ -197,7 +197,7 @@ export class MdInputDirective implements AfterContentInit {
197197
/** Determines if the component host is a textarea. If not recognizable it returns false. */
198198
private _isTextarea() {
199199
let nativeElement = this._elementRef.nativeElement;
200-
return nativeElement ? nativeElement.nodeName === 'textarea' : 'input';
200+
return nativeElement ? nativeElement.nodeName.toLowerCase() === 'textarea' : false;
201201
}
202202
}
203203

0 commit comments

Comments
 (0)