Skip to content

Commit 6c48750

Browse files
author
Ales Rechtorik
committed
replace replace with parseFloat
1 parent 2387801 commit 6c48750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/input/input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class MdAutosize implements OnInit {
172172
// if line height is explicitly set(to a pixel value), use that
173173
if (computedStyles.lineHeight && computedStyles.lineHeight.toLowerCase().indexOf('px') >= 0) {
174174
// return stripped of the "px" and as a number
175-
return +computedStyles.lineHeight.replace('px', '');
175+
return parseFloat(computedStyles.lineHeight);
176176
}
177177

178178
// create temporary element

0 commit comments

Comments
 (0)