We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6351de9 commit 3157bdbCopy full SHA for 3157bdb
src/InputSpinner.js
@@ -571,6 +571,9 @@ class InputSpinner extends Component {
571
if (!event && this.state.longStep > 0) {
572
num = Math.round(num / this.state.longStep) * this.state.longStep;
573
}
574
+ if (this.isTypeDecimal()) {
575
+ num = num.toFixed(this.props.precision) * 1
576
+ }
577
578
if (
579
this.isMaxReached(currentValue) &&
@@ -612,7 +615,10 @@ class InputSpinner extends Component {
612
615
613
616
614
617
-
618
619
620
621
+
622
623
this.isMinReached(currentValue) &&
624
!this.isEmptied() &&
0 commit comments