mirror of
https://github.com/wassname/slider.git
synced 2026-09-11 12:42:49 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fac5a1b9f3 |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rc-slider",
|
"name": "rc-slider",
|
||||||
"version": "5.1.0",
|
"version": "5.1.1",
|
||||||
"description": "slider ui component for react",
|
"description": "slider ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|||||||
+3
-1
@@ -45,7 +45,9 @@ class Slider extends React.Component {
|
|||||||
recent = bounds.length - 1;
|
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(
|
warning(
|
||||||
false,
|
false,
|
||||||
'Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)',
|
'Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)',
|
||||||
|
|||||||
Reference in New Issue
Block a user