diff --git a/src/Slider.jsx b/src/Slider.jsx index 141fe43..91b990d 100644 --- a/src/Slider.jsx +++ b/src/Slider.jsx @@ -339,7 +339,7 @@ class Slider extends React.Component { const lowerOffset = this.calcOffset(lowerBound); const handleClassName = prefixCls + '-handle'; - const isNoTip = tipFormatter === null || (step === null && !tipFormatter); + const isNoTip = (step === null) || (tipFormatter === null); const upper = (