Skip to content

Commit 707916d

Browse files
committed
fix parseHeight
1 parent 23cd188 commit 707916d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gridstack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
if (!match) {
104104
throw new Error('Invalid height');
105105
}
106-
heightUnit = match[2];
106+
heightUnit = match[2] || 'px';
107107
height = parseFloat(match[1]);
108108
}
109109
return {height: height, unit: heightUnit};

0 commit comments

Comments
 (0)