Skip to content

Commit 75c3468

Browse files
committed
2 parents d4b9c28 + b81ac28 commit 75c3468

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@revolist/revogrid-column-numeral",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Number column type for RevoGrid system based on numeraljs",
55
"main": "dist/index.js",
66
"scripts": {

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class NumberColumnType {
1818
cellProperties = (): RevoGrid.CellProps => ({ class: { ['align-right']: true } });
1919

2020
cellTemplate = (_h: RevoGrid.HyperFunc<VNode>, p: RevoGrid.ColumnDataSchemaModel): string => {
21-
const parsed = parseInt(p.model[p.prop], 10);
21+
const parsed = parseFloat(p.model[p.prop]);
2222
if (isNaN(parsed)) {
2323
return '';
2424
}

0 commit comments

Comments
 (0)