We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1de222 commit cb359d2Copy full SHA for cb359d2
3 files changed
gh-pages/dist/app.js
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "che-react-number-easing",
3
- "version": "0.1.1",
+ "version": "0.1.2",
4
"author": "che.wf",
5
"repository": {
6
"type": "git",
src/index.jsx
@@ -102,8 +102,8 @@ class NumberEasing extends React.Component {
102
103
return (
104
<span {...other} className={classes}>
105
- {useLocaleString ? displayValue.toLocaleString() :
106
- trail ? displayValue.toFixed(precision > -1 ? precision : 0) : displayValue
+ {useLocaleString ? parseFloat(displayValue).toLocaleString() :
+ trail ? parseFloat(displayValue).toFixed(precision > -1 ? precision : 0) : displayValue
107
}
108
</span>
109
);
0 commit comments