Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
paranoidjk committed Jun 14, 2017
1 parent bafbef4 commit cba733e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rc-slider",
"version": "8.1.2",
"version": "8.1.3",
"description": "Slider UI component for React",
"keywords": [
"react",
Expand Down
2 changes: 1 addition & 1 deletion src/common/Marks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Marks = ({
}) => {
const marksKeys = Object.keys(marks);
const marksCount = marksKeys.length;
const unit = 100 / (marksCount - 1);
const unit = marksCount > 1 ? 100 / (marksCount - 1) : 100;
const markWidth = unit * 0.9;

const range = max - min;
Expand Down

0 comments on commit cba733e

Please sign in to comment.