Skip to content

Commit

Permalink
fix(NumberPicker): The hackChrome function lacks the conditional proc…
Browse files Browse the repository at this point in the history
…essing for precision being 0 #4998
  • Loading branch information
Super-Rz committed Dec 10, 2024
1 parent 84eb976 commit 9469cb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/number-picker/number-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@ class NumberPicker extends React.Component<NumberPickerProps, NumberPickerState>
const precision = this.getPrecision();
if (precision > 0) {
return Number(Number(value).toFixed(precision));
} else if (precision === 0) {
return Math.floor(value);
}
return value;
}
Expand Down

0 comments on commit 9469cb3

Please sign in to comment.