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.
2 parents 02b218b + 73f07b2 commit 1f399f5Copy full SHA for 1f399f5
src/InputSpinner.js
@@ -595,6 +595,9 @@ class InputSpinner extends Component {
595
if (isLongPress && this.state.longStep > 0) {
596
num = Math.round(num / this.state.longStep) * this.state.longStep;
597
}
598
+ if (this.isTypeDecimal()) {
599
+ num = Number(num.toFixed(this.props.precision));
600
+ }
601
602
if (
603
this.isMaxReached(currentValue) &&
@@ -660,6 +663,9 @@ class InputSpinner extends Component {
660
663
661
664
662
665
666
667
668
669
670
671
this.isMinReached(currentValue) &&
0 commit comments