diff --git a/examples/marks.js b/examples/marks.js
index 7a289c3..0798444 100644
--- a/examples/marks.js
+++ b/examples/marks.js
@@ -10,6 +10,7 @@ const marks = {
0: '0°C',
26: '26°C',
37: '37°C',
+ 50: '50°C',
100: '100°C',
};
@@ -25,7 +26,7 @@ ReactDOM.render(
Slider with marks and steps
-
+
diff --git a/src/Dots.jsx b/src/Dots.jsx
index 305d317..615e432 100644
--- a/src/Dots.jsx
+++ b/src/Dots.jsx
@@ -5,6 +5,7 @@ function calcPoints(marks, dots, step, min, max) {
const points = Object.keys(marks).map(parseFloat);
if (dots) {
for (let i = min; i <= max; i = i + step) {
+ if (points.indexOf(i) >= 0) continue;
points.push(i);
}
}