Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit e38a2c8

Browse files
author
Robert Messerle
committed
fix(input): textarea with rows provided will no longer throw an error
1 parent c93ba5c commit e38a2c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/input/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function inputTextareaDirective($mdUtil, $window, $mdAria) {
291291
if(!lineHeight) {
292292
node.style.minHeight = '0';
293293

294-
lineHeight = element.height();
294+
lineHeight = element.prop('clientHeight');
295295

296296
node.style.minHeight = null;
297297
}

0 commit comments

Comments
 (0)