bump 5.1.1

This commit is contained in:
Benjy Cui
2016-09-12 11:33:18 +08:00
parent 1b8e27e613
commit fac5a1b9f3
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "rc-slider",
"version": "5.1.0",
"version": "5.1.1",
"description": "slider ui component for react",
"keywords": [
"react",
+3 -1
View File
@@ -45,7 +45,9 @@ class Slider extends React.Component {
recent = bounds.length - 1;
}
if (process.env.NODE_ENV !== 'production' && (max - min) % step !== 0) {
if (process.env.NODE_ENV !== 'production' &&
step && Math.floor(step) === step &&
(max - min) % step !== 0) {
warning(
false,
'Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)',