Refactor isNoTip expression

This commit is contained in:
Frank Weindel committed 2015-12-17 10:49:29 -05:00
1 parent 24f3b755b2
commit 4c57f3ecca
1 file changed
+1 -1
+1 -1
View File
@@ -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 = (<Handle className={handleClassName}
noTip={isNoTip} tipTransitionName={tipTransitionName} tipFormatter={tipFormatter}