From 4c57f3ecca4c039307dea860a110397d35454232 Mon Sep 17 00:00:00 2001 From: Frank Weindel Date: Thu, 17 Dec 2015 10:49:29 -0500 Subject: [PATCH] Refactor isNoTip expression --- src/Slider.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = (