This commit is contained in:
Benjy Cui
2016-09-12 11:34:33 +08:00
parent 01afe71ead
commit 0777f8027a
10 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -21603,7 +21603,7 @@
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) {
(0, _warning2.default)(false, 'Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)', max - min, step);
}