Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion committed Dec 27, 2016
1 parent 5bb0536 commit ca8040b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/input/input-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class MdInputDirective implements AfterContentInit {
/** Determines if the component host is a textarea. If not recognizable it returns false. */
private _isTextarea() {
let nativeElement = this._elementRef.nativeElement;
return nativeElement ? nativeElement.nodeName === 'textarea' : 'input';
return nativeElement ? nativeElement.nodeName.toLowerCase() === 'textarea' : false;
}
}

Expand Down

0 comments on commit ca8040b

Please sign in to comment.